[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #162741)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 16 13:58:52 PST 2025


================
@@ -0,0 +1,17 @@
+// RUN: %check_clang_tidy -std=c++11 %s modernize-use-constexpr %t -- -- -fno-delayed-template-parsing
+// RUN: %check_clang_tidy -std=c++14 %s modernize-use-constexpr %t -- -- -fno-delayed-template-parsing
+// RUN: %check_clang_tidy -std=c++17 %s modernize-use-constexpr %t -- -- -fno-delayed-template-parsing
+// RUN: %check_clang_tidy -std=c++20 %s modernize-use-constexpr %t -- -- -fno-delayed-template-parsing
----------------
localspook wrote:

```suggestion
// RUN: %check_clang_tidy -std=c++11,c++14,c++17,c++20 %s modernize-use-constexpr %t -- -- -fno-delayed-template-parsing
```

https://github.com/llvm/llvm-project/pull/162741


More information about the cfe-commits mailing list