File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,27 @@ TEST(InterpreterTest, GetIncludePaths) {
119119 EXPECT_FALSE (includes.empty ());
120120}
121121
122+ TEST (InterpreterTest, GetIncludePaths2) {
123+ Cpp::Interpreter* I =
124+ static_cast <Cpp::Interpreter*>(Cpp::CreateInterpreter ());
125+
126+ llvm::SmallVector<std::string> includes (1 );
127+
128+ I->GetIncludePaths (includes, /* withSystem=*/ false , /* withFlags=*/ false );
129+ EXPECT_FALSE (includes.empty ());
130+ size_t len = includes.size ();
131+ includes.clear ();
132+
133+ I->GetIncludePaths (includes, /* withSystem=*/ true , /* withFlags=*/ false );
134+ EXPECT_FALSE (includes.empty ());
135+ EXPECT_TRUE (includes.size () >= len);
136+ len = includes.size ();
137+
138+ I->GetIncludePaths (includes, /* withSystem=*/ true , /* withFlags=*/ true );
139+ EXPECT_FALSE (includes.empty ());
140+ EXPECT_TRUE (includes.size () >= len);
141+ }
142+
122143TEST (InterpreterTest, CodeCompletion) {
123144#if CLANG_VERSION_MAJOR >= 18 || defined(USE_CLING)
124145 Cpp::CreateInterpreter ();
You can’t perform that action at this time.
0 commit comments