Author: sammccall Date: Fri Sep 14 11:49:16 2018 New Revision: 342261 URL: http://llvm.org/viewvc/llvm-project?rev=342261&view=rev Log: [clangd] Work around compiler macro expansion bugs(?) in completion tests
Modified: clang-tools-extra/trunk/unittests/clangd/CodeCompleteTests.cpp Modified: clang-tools-extra/trunk/unittests/clangd/CodeCompleteTests.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/CodeCompleteTests.cpp?rev=342261&r1=342260&r2=342261&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clangd/CodeCompleteTests.cpp (original) +++ clang-tools-extra/trunk/unittests/clangd/CodeCompleteTests.cpp Fri Sep 14 11:49:16 2018 @@ -662,15 +662,15 @@ TEST(CompletionTest, IndexSuppressesPrea // try to complete inside it, clang kicks our completion point just outside the // preamble, resulting in always getting top-level completions. TEST(CompletionTest, CompletionInPreamble) { - EXPECT_THAT(completions(R"cpp( + auto Results = completions(R"cpp( #ifnd^ef FOO_H_ #define BAR_H_ #include <bar.h> int foo() {} #endif )cpp") - .Completions, - ElementsAre(Named("ifndef"))); + .Completions; + EXPECT_THAT(Results, ElementsAre(Named("ifndef"))); }; TEST(CompletionTest, DynamicIndexMultiFile) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits