[clang-tools-extra] r365804 - [clangd][NFC] Decrease template depth limit in RecursiveHierarchyUnbounded test
Jan Korous via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 11 11:21:21 PDT 2019
Author: jkorous
Date: Thu Jul 11 11:21:21 2019
New Revision: 365804
URL: http://llvm.org/viewvc/llvm-project?rev=365804&view=rev
Log:
[clangd][NFC] Decrease template depth limit in RecursiveHierarchyUnbounded test
...to minimize the chance of stack overflow before reaching the limit.
Modified:
clang-tools-extra/trunk/clangd/unittests/TypeHierarchyTests.cpp
Modified: clang-tools-extra/trunk/clangd/unittests/TypeHierarchyTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/TypeHierarchyTests.cpp?rev=365804&r1=365803&r2=365804&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/TypeHierarchyTests.cpp (original)
+++ clang-tools-extra/trunk/clangd/unittests/TypeHierarchyTests.cpp Thu Jul 11 11:21:21 2019
@@ -390,6 +390,7 @@ TEST(TypeHierarchy, RecursiveHierarchyUn
)cpp");
TestTU TU = TestTU::withCode(Source.code());
+ TU.ExtraArgs.push_back("-ftemplate-depth=10");
auto AST = TU.build();
// The compiler should produce a diagnostic for hitting the
More information about the cfe-commits
mailing list