[clang-tools-extra] a8706b2 - [clangd] Fix windows buildbots

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 4 03:07:36 PST 2020


Author: Kadir Cetinkaya
Date: 2020-03-04T12:07:23+01:00
New Revision: a8706b22a62e3b635bb1b124ad9448544c4b0673

URL: https://github.com/llvm/llvm-project/commit/a8706b22a62e3b635bb1b124ad9448544c4b0673
DIFF: https://github.com/llvm/llvm-project/commit/a8706b22a62e3b635bb1b124ad9448544c4b0673.diff

LOG: [clangd] Fix windows buildbots

Added: 
    

Modified: 
    clang-tools-extra/clangd/unittests/ParsedASTTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp b/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
index bc14bc95416e..1636e8f42183 100644
--- a/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
+++ b/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp
@@ -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();


        


More information about the cfe-commits mailing list