[clang-tools-extra] fed2a50 - [clang-tidy] quickfix: add -fno-delayed-template-parsing as default argument for runCheckOnCode unit-tests to unbreak windows

Jonas Toth via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 3 13:02:24 PST 2020


Author: Jonas Toth
Date: 2020-01-03T22:02:11+01:00
New Revision: fed2a5033af564af390faa8f8438018fe747126a

URL: https://github.com/llvm/llvm-project/commit/fed2a5033af564af390faa8f8438018fe747126a
DIFF: https://github.com/llvm/llvm-project/commit/fed2a5033af564af390faa8f8438018fe747126a.diff

LOG: [clang-tidy] quickfix: add -fno-delayed-template-parsing as default argument for runCheckOnCode unit-tests to unbreak windows

Added: 
    

Modified: 
    clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
index 36727ec7662e..5e62a199b78d 100644
--- a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
+++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
@@ -97,6 +97,7 @@ runCheckOnCode(StringRef Code, std::vector<ClangTidyError> *Errors = nullptr,
 
   std::vector<std::string> Args(1, "clang-tidy");
   Args.push_back("-fsyntax-only");
+  Args.push_back("-fno-delayed-template-parsing");
   std::string extension(llvm::sys::path::extension(Filename.str()));
   if (extension == ".m" || extension == ".mm") {
     Args.push_back("-fobjc-abi-version=2");


        


More information about the cfe-commits mailing list