diff options
author | Marco Bubke <marco.bubke@qt.io> | 2019-04-24 14:07:39 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2019-04-29 12:52:05 +0000 |
commit | 2d520140d01a8c6d9ff88c7f7205dfa28cc06d2d (patch) | |
tree | 04113edcfbf43f62552acfe226b5a6bd307f5ded /tests/unit/unittest/codecompletionsextractor-test.cpp | |
parent | 1975641a3d0ccb3f36452524a57f7d2303b62b25 (diff) | |
download | qt-creator-2d520140d01a8c6d9ff88c7f7205dfa28cc06d2d.tar.gz |
Clang: Fix system pre include search path
We now get the resource path from creator. The -fPIC case is working now
too.
Change-Id: Id191e89e6d46706748d50440038a06a349972cc9
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'tests/unit/unittest/codecompletionsextractor-test.cpp')
-rw-r--r-- | tests/unit/unittest/codecompletionsextractor-test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unittest/codecompletionsextractor-test.cpp b/tests/unit/unittest/codecompletionsextractor-test.cpp index ae7559ce78..509dfd49dc 100644 --- a/tests/unit/unittest/codecompletionsextractor-test.cpp +++ b/tests/unit/unittest/codecompletionsextractor-test.cpp @@ -24,7 +24,7 @@ ****************************************************************************/ #include "googletest.h" -#include "testenvironment.h" +#include "unittest-utility-functions.h" #include <clangcodecompleteresults.h> #include <clangdocument.h> @@ -148,7 +148,7 @@ protected: protected: ClangBackEnd::UnsavedFiles unsavedFiles; ClangBackEnd::Documents documents{unsavedFiles}; - Utf8StringVector compilationArguments{TestEnvironment::addPlatformArguments()}; + Utf8StringVector compilationArguments{UnitTest::addPlatformArguments()}; Document functionDocument{Utf8StringLiteral(TESTDATA_DIR"/complete_extractor_function.cpp"), compilationArguments, {}, documents}; Document functionOverloadDocument{Utf8StringLiteral(TESTDATA_DIR"/complete_extractor_functionoverload.cpp"), compilationArguments, {}, documents}; Document variableDocument{Utf8StringLiteral(TESTDATA_DIR"/complete_extractor_variable.cpp"), compilationArguments, {}, documents}; |