[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 06:19:56 PST 2026


================
@@ -2652,6 +2654,16 @@ 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.
----------------
EugeneZelenko wrote:

Will be good idea to add statement about default. Same for `TrimSuffixes`.

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


More information about the cfe-commits mailing list