logic : Fixed no indexed information saved for compilation database referencing certain compiler (issue #531)
* changed order of compiler flags for CDB indexer commands so that manually added flags are appended to the flags form the compile command. * removed usage of clang::tooling::FixedCompilationDatabase and used CompilationDatabaseSingle for empty and cdb indexer commands. * removed reference to a specific clang tool (e.g. "cl" or "cl.exe") from compile command and prepended "clang-tool" before running the indexer.
This commit is contained in:
@@ -3990,13 +3990,15 @@ public:
|
||||
|
||||
void test_cxx_parser_parses_multiple_files()
|
||||
{
|
||||
std::set<FilePath> indexedPaths;
|
||||
indexedPaths.insert(FilePath("data/CxxParserTestSuite/"));
|
||||
const std::set<FilePath> indexedPaths = { FilePath("data/CxxParserTestSuite/") };
|
||||
const std::set<FilePath> excludedPaths;
|
||||
const FilePath workingDirectory(".");
|
||||
|
||||
std::shared_ptr<IndexerCommandCxxEmpty> indexerCommand = std::make_shared<IndexerCommandCxxEmpty>(
|
||||
FilePath("data/CxxParserTestSuite/code.cpp"),
|
||||
indexedPaths,
|
||||
std::set<FilePath>(),
|
||||
excludedPaths,
|
||||
workingDirectory,
|
||||
"c++1z",
|
||||
std::vector<FilePath>(),
|
||||
std::vector<FilePath>(),
|
||||
|
||||
Reference in New Issue
Block a user