summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-03-12 16:49:24 +0000
committerHaojian Wu <hokein@google.com>2018-03-12 16:49:24 +0000
commit144b0c8036e1edac15ff1a69faa31eb23c1eef3f (patch)
tree3b6efd3cfa886f86e61c389931c10b460548528d
parentacaba3b4021af0cec45f6af3b4d6c1bbb0872050 (diff)
downloadbcm5719-llvm-144b0c8036e1edac15ff1a69faa31eb23c1eef3f.tar.gz
bcm5719-llvm-144b0c8036e1edac15ff1a69faa31eb23c1eef3f.zip
[clangd] Fix diagnostic errors in the test code, NFC.
Reviewers: ilya-biryukov Reviewed By: ilya-biryukov Subscribers: klimek, jkorous-apple, cfe-commits, ioeric Differential Revision: https://reviews.llvm.org/D44294 llvm-svn: 327293
-rw-r--r--clang-tools-extra/unittests/clangd/XRefsTests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang-tools-extra/unittests/clangd/XRefsTests.cpp b/clang-tools-extra/unittests/clangd/XRefsTests.cpp
index c036058f15c..7cde91cfc47 100644
--- a/clang-tools-extra/unittests/clangd/XRefsTests.cpp
+++ b/clang-tools-extra/unittests/clangd/XRefsTests.cpp
@@ -596,7 +596,9 @@ TEST(GoToInclude, All) {
auto FooH = testPath("foo.h");
auto FooHUri = URIForFile{FooH};
- const char *HeaderContents = R"cpp([[]]int a;)cpp";
+ const char *HeaderContents = R"cpp([[]]#pragma once
+ int a;
+ )cpp";
Annotations HeaderAnnotations(HeaderContents);
FS.Files[FooH] = HeaderAnnotations.code();
OpenPOWER on IntegriCloud