[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
================
@@ -1084,11 +1088,34 @@ bool IdentifierNamingCheck::isParamInMainLikeFunction(
return Matcher.match(FDecl->getName());
}
+static void trimPrefixesAndSuffixes(
+ StringRef &Mid,
+ ArrayRef<std::optional<IdentifierNamingCheck::NamingStyle>> NamingStyles,
----------------
vbvictor wrote:
Why do we need to pass here all styles?
We only need to remove prefix/suffix from one style that identifier has, no?
https://github.com/llvm/llvm-project/pull/181502
More information about the cfe-commits
mailing list