From: Kadir Cetinkaya Date: Wed, 4 Mar 2020 11:07:13 +0000 (+0100) Subject: [clangd] Fix windows buildbots X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a8706b22a62e3b635bb1b124ad9448544c4b0673;p=platform%2Fupstream%2Fllvm.git [clangd] Fix windows buildbots --- diff --git a/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp b/clang-tools-extra/clangd/unittests/ParsedASTTests.cpp index bc14bc9..1636e8f 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();