[PATCH] D142592: [clang-tidy][libc] Add an inline function checker for the libc project.
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 01:50:38 PST 2023
ClockMan added inline comments.
================
Comment at: clang-tools-extra/clang-tidy/llvmlibc/InlineFunctionDeclCheck.cpp:20
+void InlineFunctionDeclCheck::registerMatchers(MatchFinder *Finder) {
+ Finder->addMatcher(decl(functionDecl()).bind("func_decl"), this);
+}
----------------
or maybe even better:
Finder->addMatcher(functionDecl(unless(isExpansionInMainFile()), isInline()).bind("func_decl"), this);
Instead of line 26 and 32.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142592/new/
https://reviews.llvm.org/D142592
More information about the cfe-commits
mailing list