[clang-tools-extra] [clang-tidy] add AllowedTypes option to misc-const-correctness (PR #122951)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 07:55:21 PST 2025


================
@@ -260,6 +260,11 @@ Changes in existing checks
   <clang-tidy/checks/cppcoreguidelines/pro-type-union-access>` check to
   report a location even when the member location is not valid.
 
+- Improved :doc:`misc-const-correctness
+  <clang-tidy/checks/misc/const-correctness>` check by adding
+  the option ``AllowedTypes``, that excludes specified types
----------------
EugeneZelenko wrote:

```suggestion
  the option `AllowedTypes`, that excludes specified types
```

Please use single back-ticks for options and their values.

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


More information about the cfe-commits mailing list