logic: indexer command refactoring

* moved SystemHeaderSearchPaths and FramewordSeearchPaths of indexer cxx indexer commands to CompilerFlags section
* added SourceGroupTestSuite to test indexer command generation of all source groups
* removed "compile_commands.json" from gitignore, because a resource file for the tests has this name
This commit is contained in:
mlangkabel
2018-09-18 17:09:28 +02:00
parent 07454f2045
commit 9dc2bcc2f9
577 changed files with 11357 additions and 9443 deletions
@@ -0,0 +1,84 @@
SourceFilePath: "tictactoe/src/artificial_player.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/artificial_player.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/artificial_player.cpp"
SourceFilePath: "tictactoe/src/field.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/field.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/field.cpp"
SourceFilePath: "tictactoe/src/human_player.cc"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/human_player.cc"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/human_player.cc"
SourceFilePath: "tictactoe/src/io.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/io.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/io.cpp"
SourceFilePath: "tictactoe/src/main.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/main.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/main.cpp"
SourceFilePath: "tictactoe/src/player.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/player.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/player.cpp"
SourceFilePath: "tictactoe/src/tictactoe.cpp"
IndexedPath: "test/indexed/header/path"
IndexedPath: "tictactoe/src/tictactoe.cpp"
CompilerFlag: "-isystem"
CompilerFlag: "tictactoe/include"
CompilerFlag: "-v"
CompilerFlag: "-std=c++17"
CompilerFlag: "-isystem"
CompilerFlag: "test/header/search/path"
CompilerFlag: "-iframework"
CompilerFlag: "test/framework/search/path"
CompilerFlag: "tictactoe/src/tictactoe.cpp"
@@ -0,0 +1,12 @@
<?xml version="1.0" ?>
<ns2:softwareSystem xmlns:ns2="http://www.hello2morrow.com/sonargraph/core" id="648f7faac44bfd5ac3cdd4bb5222efee" version="9.7.0.500">
<description></description>
<module xmlns:ns4="http://www.hello2morrow.com/sonargraph/languageprovider/cplusplus" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:xsdCppManualModule" name="TicTacToe" id="7f4e2c6be18676bc5959cfb7c802d27e" language="CPlusPlus">
<description></description>
<rootPath name="./tictactoe/src"></rootPath>
<basePathForIncludes>./tictactoe</basePathForIncludes>
<sourceFileExtensions>.cpp,.cc</sourceFileExtensions>
<moduleCompilerOptions installationCompilerDefinitionRef="CopyOfVisualCpp_14.0_x86">-I./include
-v</moduleCompilerOptions>
</module>
</ns2:softwareSystem>