[clang-tools-extra] [clang-tidy][readability-identifier-length] refactoring and cleanup (PR #194610)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 09:26:40 PDT 2026


================
@@ -32,19 +32,19 @@ class IdentifierLengthCheck : public ClangTidyCheck {
   const unsigned MinimumExceptionNameLength;
   const unsigned MinimumParameterNameLength;
 
-  std::string IgnoredVariableNamesInput;
+  llvm::StringRef IgnoredVariableNamesInput;
----------------
localspook wrote:

We avoid qualifying LLVM types if possible:
```suggestion
  StringRef IgnoredVariableNamesInput;
```
(I recognize it's inconsistent with `llvm::Regex` below)

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


More information about the cfe-commits mailing list