[clang-tools-extra] [clang-tidy] Fix readability-identifier-naming FP on function templates (PR #198517)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Wed May 20 06:05:20 PDT 2026


================
@@ -1189,6 +1190,24 @@ StyleKind IdentifierNamingCheck::findStyleKind(
         return SK_Enum;
     }
 
+    if (Decl->isStruct() && NamingStyles[SK_Struct])
----------------
vbvictor wrote:

If we go this way, please avoid duplication - make temp variable that will contain Definition or Decl and then check naming style once for it

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


More information about the cfe-commits mailing list