[clang] Add -fno-delayed-template-parsing to the added unit tests in DeclPrinterTest.cpp

This commit is contained in:
Bruno Ricci 2020-08-05 14:12:05 +01:00
parent 75f239e975
commit 4dcbb9cef7
No known key found for this signature in database
GPG Key ID: D58C906B2F684D92
1 changed files with 2 additions and 3 deletions

View File

@ -153,8 +153,7 @@ PrintedDeclCXX98Matches(StringRef Code, const DeclarationMatcher &NodeMatch,
StringRef Code,
const DeclarationMatcher &NodeMatch,
StringRef ExpectedPrinted) {
std::vector<std::string> Args(1, "-std=c++11");
Args.push_back("-fno-delayed-template-parsing");
std::vector<std::string> 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<std::string> Args(1, "-std=c++17");
std::vector<std::string> Args{"-std=c++17", "-fno-delayed-template-parsing"};
return PrintedDeclMatches(Code, Args, NodeMatch, ExpectedPrinted, "input.cc",
PolicyModifier);
}