std::vector<std::string> Args(1, Mode);
ASSERT_TRUE(runToolOnCodeWithArgs(
new EvaluateConstantInitializersAction(),
- R"(template <typename T>
- struct vector {
- explicit vector(int size);
- };
- template <typename R>
- struct S {
- vector<R> intervals() const {
- vector<R> Dependent(2);
- return Dependent;
- }
- };
- void doSomething() {
- int Constant = 2 + 2;
- (void) Constant;
- }
- )",
+ "template <typename T>"
+ "struct vector {"
+ " explicit vector(int size);"
+ "};"
+ "template <typename R>"
+ "struct S {"
+ " vector<R> intervals() const {"
+ " vector<R> Dependent(2);"
+ " return Dependent;"
+ " }"
+ "};"
+ "void doSomething() {"
+ " int Constant = 2 + 2;"
+ " (void) Constant;"
+ "}",
Args));
}
}