[clang-tools-extra] ba71e84 - [clangd] Add no delayed templates to outline tests
Kadir Cetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 03:26:57 PST 2019
Author: Kadir Cetinkaya
Date: 2019-12-04T12:19:47+01:00
New Revision: ba71e84430f98639957f002bf424aef5248832c7
URL: https://github.com/llvm/llvm-project/commit/ba71e84430f98639957f002bf424aef5248832c7
DIFF: https://github.com/llvm/llvm-project/commit/ba71e84430f98639957f002bf424aef5248832c7.diff
LOG: [clangd] Add no delayed templates to outline tests
Added:
Modified:
clang-tools-extra/clangd/unittests/TweakTests.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/unittests/TweakTests.cpp b/clang-tools-extra/clangd/unittests/TweakTests.cpp
index 1149a0e64978..7bdf599f302e 100644
--- a/clang-tools-extra/clangd/unittests/TweakTests.cpp
+++ b/clang-tools-extra/clangd/unittests/TweakTests.cpp
@@ -1880,6 +1880,9 @@ TEST_F(DefineOutlineTest, ApplyTest) {
llvm::StringMap<std::string> EditedFiles;
ExtraFiles["Test.cpp"] = "";
FileName = "Test.hpp";
+ // Template body is not parsed until instantiation time on windows, which
+ // results in arbitrary failures as function body becomes NULL.
+ ExtraArgs.push_back("-fno-delayed-template-parsing");
struct {
llvm::StringRef Test;
More information about the cfe-commits
mailing list