[clangd] Fix windows buildbots
authorKadir Cetinkaya <kadircet@google.com>
Wed, 4 Mar 2020 11:07:13 +0000 (12:07 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 4 Mar 2020 11:07:23 +0000 (12:07 +0100)
clang-tools-extra/clangd/unittests/ParsedASTTests.cpp

index bc14bc9..1636e8f 100644 (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();