[clangd] Fix windows buildbots

This commit is contained in:
Kadir Cetinkaya 2020-03-04 12:07:13 +01:00
parent 5e0f9d5d3c
commit a8706b22a6
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6

View File

@ -373,7 +373,10 @@ TEST(ParsedASTTest, ReplayPreambleForTidyCheckers) {
TU.AdditionalFiles["bar.h"] = "";
TU.AdditionalFiles["baz.h"] = "";
TU.AdditionalFiles["a.h"] = "";
TU.ExtraArgs = {"-isystem."};
// Since we are also testing #import directives, and they don't make much
// sense in c++ (also they actually break on windows), just set language to
// obj-c.
TU.ExtraArgs = {"-isystem.", "-xobjective-c"};
const auto &AST = TU.build();
const auto &SM = AST.getSourceManager();