================
@@ -79,6 +79,10 @@ void InlineFunctionDeclCheck::check(const
MatchFinder::MatchResult &Result) {
if (MethodDecl->getParent()->isLambda())
return;
+ // Ignore implicit functions (e.g. implicit constructors or destructors)
+ if (FuncDecl->isImplicit())
----------------
PiotrZSL wrote:
Instead using isImplicit better just add:
```
std::optional<TraversalKind> getCheckTraversalKind() const override {
return TK_IgnoreUnlessSpelledInSource;
}
```
to a header file of this check.
https://github.com/llvm/llvm-project/pull/71095
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits