From 4dcbb9cef71afa549afe8f6b4d335b1c996f8079 Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Wed, 5 Aug 2020 14:12:05 +0100 Subject: [PATCH] [clang] Add -fno-delayed-template-parsing to the added unit tests in DeclPrinterTest.cpp --- clang/unittests/AST/DeclPrinterTest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/unittests/AST/DeclPrinterTest.cpp b/clang/unittests/AST/DeclPrinterTest.cpp index 38e46a3..6b7ceac 100644 --- a/clang/unittests/AST/DeclPrinterTest.cpp +++ b/clang/unittests/AST/DeclPrinterTest.cpp @@ -153,8 +153,7 @@ PrintedDeclCXX98Matches(StringRef Code, const DeclarationMatcher &NodeMatch, StringRef Code, const DeclarationMatcher &NodeMatch, StringRef ExpectedPrinted) { - std::vector Args(1, "-std=c++11"); - Args.push_back("-fno-delayed-template-parsing"); + std::vector Args{"-std=c++11", "-fno-delayed-template-parsing"}; return PrintedDeclMatches(Code, Args, NodeMatch, @@ -166,7 +165,7 @@ PrintedDeclCXX98Matches(StringRef Code, const DeclarationMatcher &NodeMatch, PrintedDeclCXX17Matches(StringRef Code, const DeclarationMatcher &NodeMatch, StringRef ExpectedPrinted, PrintingPolicyModifier PolicyModifier = nullptr) { - std::vector Args(1, "-std=c++17"); + std::vector Args{"-std=c++17", "-fno-delayed-template-parsing"}; return PrintedDeclMatches(Code, Args, NodeMatch, ExpectedPrinted, "input.cc", PolicyModifier); } -- 2.7.4