[clang-tools-extra] [clang-tidy][libc] Ignore implicit function inline (PR #71095)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 14:52:46 PDT 2023


================
@@ -79,6 +79,10 @@ void InlineFunctionDeclCheck::check(const MatchFinder::MatchResult &Result) {
     if (MethodDecl->getParent()->isLambda())
       return;
 
+  // Ignore functions that have been deleted.
+  if (FuncDecl->isDeleted())
----------------
PiotrZSL wrote:

Instead of this simply use:
```
void InlineFunctionDeclCheck::registerMatchers(MatchFinder *Finder) {
  Finder->addMatcher(functionDecl(unless(isDeleted())).bind("func_decl"), this);
}
```

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


More information about the cfe-commits mailing list