forked from qt-creator/qt-creator
Clang: Fix ReferencesCollector tests on Windows
This is supposed to fix [ FAILED ] ReferencesCollector.VariableInTemplate [ FAILED ] ReferencesCollector.MemberInTemplate on Windows. Change-Id: I1a6486e524069c83da183e3e68df2dea8ba415ff Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "googletest.h"
|
||||
#include "testenvironment.h"
|
||||
|
||||
#include <clangbackendipc_global.h>
|
||||
#include <clangreferencescollector.h>
|
||||
@@ -78,7 +79,9 @@ struct Data {
|
||||
document.parse();
|
||||
}
|
||||
|
||||
ProjectPart projectPart{Utf8StringLiteral("projectPartId"), {Utf8StringLiteral("-std=c++14")}};
|
||||
ProjectPart projectPart{
|
||||
Utf8StringLiteral("projectPartId"),
|
||||
TestEnvironment::addPlatformArguments({Utf8StringLiteral("-std=c++14")})};
|
||||
ClangBackEnd::ProjectParts projects;
|
||||
ClangBackEnd::UnsavedFiles unsavedFiles;
|
||||
ClangBackEnd::Documents documents{projects, unsavedFiles};
|
||||
|
Reference in New Issue
Block a user