[clang-tools-extra] [clang-tidy] identifier-naming: TrimPrefixSuffix option to avoid concatenating multiple pre(suf)fixes (PR #181502)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 21 08:39:09 PST 2026
================
@@ -2652,6 +2654,18 @@ After:
template <template <typename> class pre_tpl_parameter_post, int COUNT_params,
typename... TYPE_parameters>
+.. option:: TrimPrefixes
+
+ When set to `true`, the suggested fix for identifiers that have the wrong
+ prefix will be trimmed of all known prefixes from other options.
+ Defaults to `false`.
+
+.. option:: TrimSuffixes
+
+ When set to `true`, the suggested fix for identifiers that have the wrong
+ suffix will be trimmed of all known suffixes from other options.
+ Defaults to `false`.
----------------
EugeneZelenko wrote:
```suggestion
suffix will be trimmed of all known suffixes from other options. Default
is `false`.
```
https://github.com/llvm/llvm-project/pull/181502
More information about the cfe-commits
mailing list