forked from qt-creator/qt-creator
Clang: Introduce CompilerMacro
We want not only the name but the value of the macro too. So we can compare if anything has changed. Change-Id: Ie59caf8cbf54d108f9e15299d25306a406b5c40d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -70,12 +70,12 @@ protected:
|
||||
std::vector<ClangBackEnd::IdPaths> idPaths = {{projectPartId1, {{1, 1}, {1, 2}}}};
|
||||
ProjectPartContainer projectPart1{projectPartId1.clone(),
|
||||
{"-I", TESTDATA_DIR, "-Wno-pragma-once-outside-header"},
|
||||
{"DEFINE"},
|
||||
{{"DEFINE", "1"}},
|
||||
{id(header1Path)},
|
||||
{id(main1Path)}};
|
||||
ProjectPartContainer projectPart2{projectPartId2.clone(),
|
||||
{"-x", "c++-header", "-Wno-pragma-once-outside-header"},
|
||||
{"DEFINE"},
|
||||
{{"DEFINE", "1"}},
|
||||
{id(header2Path)},
|
||||
{id(main2Path)}};
|
||||
std::vector<ProjectPartContainer> projectParts{projectPart1, projectPart2};
|
||||
|
||||
Reference in New Issue
Block a user