We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52327cd + 05f3e24 commit 5e1c7a0Copy full SHA for 5e1c7a0
1 file changed
plugins/cpp/parser/src/cppparser.cpp
@@ -750,6 +750,15 @@ bool CppParser::parseByJson(
750
751
std::vector<clang::tooling::CompileCommand> compileCommands =
752
compDb->getAllCompileCommands();
753
+
754
+ compileCommands.erase(
755
+ std::remove_if(compileCommands.begin(), compileCommands.end(),
756
+ [&](const clang::tooling::CompileCommand& c)
757
+ {
758
+ return !isSourceFile(c.Filename);
759
+ }),
760
+ compileCommands.end());
761
762
std::size_t numCompileCommands = compileCommands.size();
763
764
//--- Create a thread pool for the current commands ---//
0 commit comments