[clang-tools-extra] [clang-tidy][NFC] optimize unused using decls performance (PR #110200)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 05:55:35 PDT 2024


================
@@ -25,6 +25,13 @@ AST_MATCHER_P(DeducedTemplateSpecializationType, refsToTemplatedDecl,
   return false;
 }
 
+AST_MATCHER_P(Type, getTagDecl, clang::ast_matchers::internal::Matcher<TagDecl>,
+              DeclMatcher) {
+  if (const auto *ND = Node.getAsTagDecl())
----------------
EugeneZelenko wrote:

Please do not use `auto` - type is not spelled explicitly.

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


More information about the cfe-commits mailing list