[clang-tools-extra] [clang-tidy] Removed redundant-inline-specifier warning on static data members (PR #81423)

Félix-Antoine Constantin via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 11 12:54:29 PST 2024


================
@@ -47,6 +47,9 @@ AST_POLYMORPHIC_MATCHER_P(isInternalLinkage,
     return VD->isInAnonymousNamespace();
   llvm_unreachable("Not a valid polymorphic type");
 }
+
+AST_MATCHER(clang::VarDecl, hasInitialization) { return Node.hasInit(); }
----------------
felix642 wrote:

Simply didn't know this exists. I'll update my code with your suggestion. Thank you 

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


More information about the cfe-commits mailing list