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

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 14:47:04 PDT 2025


================
@@ -216,6 +216,11 @@ New checks
   Finds virtual function overrides with different visibility than the function
   in the base class.
 
+- New :doc:`modernize-use-constexr
+  <clang-tidy/checks/modernize/use-constexpr>` check.
+
+  Finds functions and variables that can be declared 'constexpr'.
----------------
EugeneZelenko wrote:

```suggestion
  Finds functions and variables that can be declared ``constexpr``.
```

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


More information about the cfe-commits mailing list