@@ -562,7 +562,7 @@ TEST(FunctionReflectionTest, GetFunctionRequiredArgs) {
562562}
563563
564564TEST (FunctionReflectionTest, GetFunctionArgType) {
565- std::vector<Decl*> Decls, SubDecls ;
565+ std::vector<Decl*> Decls;
566566 std::string code = R"(
567567 void f1(int i, double d, long l, char ch) {}
568568 void f2(const int i, double d[], long *l, char ch[4]) {}
@@ -582,7 +582,7 @@ TEST(FunctionReflectionTest, GetFunctionArgType) {
582582}
583583
584584TEST (FunctionReflectionTest, GetFunctionSignature) {
585- std::vector<Decl*> Decls, SubDecls ;
585+ std::vector<Decl*> Decls;
586586 std::string code = R"(
587587 class C {
588588 void f(int i, double d, long l = 0, char ch = 'a') {}
@@ -626,7 +626,8 @@ TEST(FunctionReflectionTest, GetFunctionSignature) {
626626}
627627
628628TEST (FunctionReflectionTest, IsTemplatedFunction) {
629- std::vector<Decl*> Decls, SubDeclsC1, SubDeclsC2;
629+ std::vector<Decl*> Decls;
630+ std::vector<Decl*> SubDeclsC1;
630631 std::string code = R"(
631632 void f1(int a) {}
632633
@@ -1448,7 +1449,7 @@ TEST(FunctionReflectionTest, GetFunctionAddress) {
14481449#ifdef _WIN32
14491450 GTEST_SKIP () << " Disabled on Windows. Needs fixing." ;
14501451#endif
1451- std::vector<Decl*> Decls, SubDecls ;
1452+ std::vector<Decl*> Decls;
14521453 std::string code = " int f1(int i) { return i * i; }" ;
14531454 std::vector<const char *> interpreter_args = {" -include" , " new" };
14541455
@@ -2132,7 +2133,7 @@ TEST(FunctionReflectionTest, IsConstMethod) {
21322133}
21332134
21342135TEST (FunctionReflectionTest, GetFunctionArgName) {
2135- std::vector<Decl*> Decls, SubDecls ;
2136+ std::vector<Decl*> Decls;
21362137 std::string code = R"(
21372138 void f1(int i, double d, long l, char ch) {}
21382139 void f2(const int i, double d[], long *l, char ch[4]) {}
@@ -2172,7 +2173,7 @@ TEST(FunctionReflectionTest, GetFunctionArgName) {
21722173}
21732174
21742175TEST (FunctionReflectionTest, GetFunctionArgDefault) {
2175- std::vector<Decl*> Decls, SubDecls ;
2176+ std::vector<Decl*> Decls;
21762177 std::string code = R"(
21772178 void f1(int i, double d = 4.0, const char *s = "default", char ch = 'c') {}
21782179 void f2(float i = 0.0, double d = 3.123, long m = 34126) {}
0 commit comments