Revert "src: removed use of clang::tooling::CompileCommand::Filename"
This reverts commit 5d845961ac.
This commit is contained in:
@@ -13,8 +13,7 @@ std::vector<clang::tooling::CompileCommand> CxxCompilationDatabaseSingle::getCom
|
||||
|
||||
std::vector<std::string> CxxCompilationDatabaseSingle::getAllFiles() const
|
||||
{
|
||||
// return std::vector<std::string>(1, m_command.Filename);
|
||||
return std::vector<std::string>();
|
||||
return std::vector<std::string>(1, m_command.Filename);
|
||||
}
|
||||
|
||||
std::vector<clang::tooling::CompileCommand> CxxCompilationDatabaseSingle::getAllCompileCommands() const
|
||||
|
||||
@@ -218,8 +218,7 @@ void CxxParser::runTool(clang::tooling::CompileCommand command, const Arguments&
|
||||
command.CommandLine.insert(command.CommandLine.end(), args.begin(), args.end());
|
||||
|
||||
CxxCompilationDatabaseSingle compilationDatabase(command);
|
||||
// clang::tooling::ClangTool tool(compilationDatabase, std::vector<std::string>(1, command.Filename));
|
||||
clang::tooling::ClangTool tool(compilationDatabase, std::vector<std::string>());
|
||||
clang::tooling::ClangTool tool(compilationDatabase, std::vector<std::string>(1, command.Filename));
|
||||
tool.setDiagnosticConsumer(m_diagnostics.get());
|
||||
|
||||
ASTActionFactory actionFactory(m_client, m_fileRegister.get());
|
||||
|
||||
Reference in New Issue
Block a user