================
@@ -15,14 +16,23 @@ using namespace clang::ast_matchers;
 
 namespace clang::tidy::bugprone {
 
+namespace {
+
+AST_MATCHER(ParmVarDecl, hasLifetimeBoundAttr) {
+  return Node.getAttr<LifetimeBoundAttr>() != nullptr;
----------------
5chmidti wrote:

nit: `Node.hasAttr<LifetimeBoundAttr>()`

https://github.com/llvm/llvm-project/pull/118315
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to