Skip to content

Commit ba71e84

Browse files
committed
[clangd] Add no delayed templates to outline tests
1 parent 93c8235 commit ba71e84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/clangd/unittests/TweakTests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,9 @@ TEST_F(DefineOutlineTest, ApplyTest) {
18801880
llvm::StringMap<std::string> EditedFiles;
18811881
ExtraFiles["Test.cpp"] = "";
18821882
FileName = "Test.hpp";
1883+
// Template body is not parsed until instantiation time on windows, which
1884+
// results in arbitrary failures as function body becomes NULL.
1885+
ExtraArgs.push_back("-fno-delayed-template-parsing");
18831886

18841887
struct {
18851888
llvm::StringRef Test;

0 commit comments

Comments
 (0)