[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:19 PDT 2026
================
@@ -0,0 +1,33 @@
+// RUN: %check_clang_tidy -std=c++20 %s readability-identifier-naming %t -- \
+// RUN: -config='{CheckOptions: { \
+// RUN: readability-identifier-naming.MemberPrefix: 'm_', \
+// RUN: readability-identifier-naming.MemberSuffix: '_', \
+// RUN: readability-identifier-naming.ParameterPrefix: 'p_', \
+// RUN: readability-identifier-naming.TrimPrefixes: 1, \
+// RUN: readability-identifier-naming.TrimSuffixes: 1, \
+// RUN: }}' \
+// RUN: -header-filter='' \
+// RUN: -- -fno-delayed-template-parsing -Dbad_macro \
+// RUN: -I%S/Inputs/identifier-naming \
+// RUN: -isystem %S/Inputs/identifier-naming/system
+
+// clang-format off
----------------
vbvictor wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/181502
More information about the cfe-commits
mailing list