=?utf-8?q?Björn?= Svensson <bjorn.a.svens...@est.tech>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/135...@github.com>


================
@@ -72,11 +72,13 @@ static SourceLocation getInlineTokenLocation(SourceRange 
RangeLocation,
 }
 
 void RedundantInlineSpecifierCheck::registerMatchers(MatchFinder *Finder) {
+  const auto IsPartOfRecordDecl = hasAncestor(recordDecl());
----------------
PiotrZSL wrote:

Note: I wonder, maybe hasDeclContext should be used here instead of hasAncestor 
or just match cxxMethodDecl directly instead of functionDecl.

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

Reply via email to