diff --git a/lib/CppInterOp/Compatibility.h b/lib/CppInterOp/Compatibility.h index ddee92574..5552e60ba 100644 --- a/lib/CppInterOp/Compatibility.h +++ b/lib/CppInterOp/Compatibility.h @@ -354,7 +354,6 @@ inline void codeComplete(std::vector& Results, } std::vector results; - std::vector Comps; clang::CompilerInstance* MainCI = (*Interp)->getCompilerInstance(); auto CC = clang::ReplCodeCompleter(); CC.codeComplete(MainCI, code, complete_line, complete_column, diff --git a/unittests/CppInterOp/FunctionReflectionTest.cpp b/unittests/CppInterOp/FunctionReflectionTest.cpp index 355b0666b..3cb249e66 100644 --- a/unittests/CppInterOp/FunctionReflectionTest.cpp +++ b/unittests/CppInterOp/FunctionReflectionTest.cpp @@ -562,7 +562,7 @@ TEST(FunctionReflectionTest, GetFunctionRequiredArgs) { } TEST(FunctionReflectionTest, GetFunctionArgType) { - std::vector Decls, SubDecls; + std::vector Decls; std::string code = R"( void f1(int i, double d, long l, char ch) {} void f2(const int i, double d[], long *l, char ch[4]) {} @@ -582,7 +582,7 @@ TEST(FunctionReflectionTest, GetFunctionArgType) { } TEST(FunctionReflectionTest, GetFunctionSignature) { - std::vector Decls, SubDecls; + std::vector Decls; std::string code = R"( class C { void f(int i, double d, long l = 0, char ch = 'a') {} @@ -626,7 +626,8 @@ TEST(FunctionReflectionTest, GetFunctionSignature) { } TEST(FunctionReflectionTest, IsTemplatedFunction) { - std::vector Decls, SubDeclsC1, SubDeclsC2; + std::vector Decls; + std::vector SubDeclsC1; std::string code = R"( void f1(int a) {} @@ -1448,7 +1449,7 @@ TEST(FunctionReflectionTest, GetFunctionAddress) { #ifdef _WIN32 GTEST_SKIP() << "Disabled on Windows. Needs fixing."; #endif - std::vector Decls, SubDecls; + std::vector Decls; std::string code = "int f1(int i) { return i * i; }"; std::vector interpreter_args = {"-include", "new"}; @@ -2132,7 +2133,7 @@ TEST(FunctionReflectionTest, IsConstMethod) { } TEST(FunctionReflectionTest, GetFunctionArgName) { - std::vector Decls, SubDecls; + std::vector Decls; std::string code = R"( void f1(int i, double d, long l, char ch) {} void f2(const int i, double d[], long *l, char ch[4]) {} @@ -2172,7 +2173,7 @@ TEST(FunctionReflectionTest, GetFunctionArgName) { } TEST(FunctionReflectionTest, GetFunctionArgDefault) { - std::vector Decls, SubDecls; + std::vector Decls; std::string code = R"( void f1(int i, double d = 4.0, const char *s = "default", char ch = 'c') {} void f2(float i = 0.0, double d = 3.123, long m = 34126) {} diff --git a/unittests/CppInterOp/ScopeReflectionTest.cpp b/unittests/CppInterOp/ScopeReflectionTest.cpp index 068a8a731..53b2ee894 100644 --- a/unittests/CppInterOp/ScopeReflectionTest.cpp +++ b/unittests/CppInterOp/ScopeReflectionTest.cpp @@ -191,7 +191,6 @@ TEST(ScopeReflectionTest, IsBuiltin) { EXPECT_TRUE(Cpp::IsBuiltin(C.getComplexType(C.Float128Ty).getAsOpaquePtr())); // std::complex - std::vector Decls; Interp->declare("#include "); Sema &S = Interp->getCI()->getSema(); auto lookup = S.getStdNamespace()->lookup(&C.Idents.get("complex")); diff --git a/unittests/CppInterOp/VariableReflectionTest.cpp b/unittests/CppInterOp/VariableReflectionTest.cpp index f6abfebe0..e6bde0e8d 100644 --- a/unittests/CppInterOp/VariableReflectionTest.cpp +++ b/unittests/CppInterOp/VariableReflectionTest.cpp @@ -534,7 +534,7 @@ TEST(VariableReflectionTest, IsConstVariable) { } TEST(VariableReflectionTest, DISABLED_GetArrayDimensions) { - std::vector Decls, SubDecls; + std::vector Decls; std::string code = R"( int a; int b[1];