[clang-tools-extra] 4f732a3 - [clangd] Fix Windows test failure by adding -fno-delayed-template-parsing to LocateSymbol.Ambiguous
Nathan Ridge via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 17:32:02 PST 2019
Author: Nathan Ridge
Date: 2019-12-12T20:31:46-05:00
New Revision: 4f732a3d49ace980058bbb12150c8afc499af0ae
URL: https://github.com/llvm/llvm-project/commit/4f732a3d49ace980058bbb12150c8afc499af0ae
DIFF: https://github.com/llvm/llvm-project/commit/4f732a3d49ace980058bbb12150c8afc499af0ae.diff
LOG: [clangd] Fix Windows test failure by adding -fno-delayed-template-parsing to LocateSymbol.Ambiguous
Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71444
Added:
Modified:
clang-tools-extra/clangd/unittests/XRefsTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/XRefsTests.cpp b/clang-tools-extra/clangd/unittests/XRefsTests.cpp
index 0352322790bd..51a7f81dcb5a 100644
--- a/clang-tools-extra/clangd/unittests/XRefsTests.cpp
+++ b/clang-tools-extra/clangd/unittests/XRefsTests.cpp
@@ -586,7 +586,11 @@ TEST(LocateSymbol, Ambiguous) {
S<T>::ba$13^z(u);
}
)cpp");
- auto AST = TestTU::withCode(T.code()).build();
+ auto TU = TestTU::withCode(T.code());
+ // FIXME: Go-to-definition in a template requires disabling delayed template
+ // parsing.
+ TU.ExtraArgs.push_back("-fno-delayed-template-parsing");
+ auto AST = TU.build();
// Ordered assertions are deliberate: we expect a predictable order.
EXPECT_THAT(locateSymbolAt(AST, T.point("1")), ElementsAre(Sym("str")));
EXPECT_THAT(locateSymbolAt(AST, T.point("2")), ElementsAre(Sym("str")));
More information about the cfe-commits
mailing list