[clang-tools-extra] [clang-tidy] identifier-naming: TrimPrefixSuffix option to avoid concatenating multiple pre(suf)fixes (PR #181502)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 01:03:21 PDT 2026


================
@@ -280,6 +280,11 @@ Changes in existing checks
   now uses separate note diagnostics for each uninitialized enumerator, making
   it easier to see which specific enumerators need explicit initialization.
 
+- Improved :doc:`readability-identifier-naming
+  <clang-tidy/checks/readability/identifier-naming>` check by adding the
+  `TrimPrefixes` and `TrimSuffixes` options, to trim all known other prefixes
+  and suffixes when fixing an identifier
----------------
vbvictor wrote:

```suggestion
  and suffixes when fixing an identifier.
```

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


More information about the cfe-commits mailing list