[clang-tools-extra] c396073 - Change ClangTidy unit tests to run in C++20 mode instead of C++11.

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 05:06:51 PST 2023


Author: Utkarsh Saxena
Date: 2023-03-02T14:06:41+01:00
New Revision: c396073a0de6bc156514c34c0ffbdd227178c11b

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

LOG: Change ClangTidy unit tests to run in C++20 mode instead of C++11.

Differential Revision: https://reviews.llvm.org/D145154

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 f10b91be2ed2c..078054c5194c5 100644
--- a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
+++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
@@ -110,7 +110,7 @@ runCheckOnCode(StringRef Code, std::vector<ClangTidyError> *Errors = nullptr,
     Args.push_back("-fobjc-arc");
   }
   if (extension == ".cc" || extension == ".cpp" || extension == ".mm") {
-    Args.push_back("-std=c++11");
+    Args.push_back("-std=c++20");
   }
   Args.push_back("-Iinclude");
   Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());


        


More information about the cfe-commits mailing list