clang-tools 22.0.0git
|
Checks that explicitly and implicitly inline functions in headers files are tagged with the LIBC_INLINE macro. More...
#include <InlineFunctionDeclCheck.h>
Public Member Functions | |
InlineFunctionDeclCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Checks that explicitly and implicitly inline functions in headers files are tagged with the LIBC_INLINE macro.
For more information about the LIBC_INLINE macro, see https://libc.llvm.org/dev/code_style.html.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvmlibc/inline-function-decl-check.html
Definition at line 25 of file InlineFunctionDeclCheck.h.
clang::tidy::llvm_libc::InlineFunctionDeclCheck::InlineFunctionDeclCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 40 of file InlineFunctionDeclCheck.cpp.
|
override |
Definition at line 51 of file InlineFunctionDeclCheck.cpp.
References clang::tidy::utils::lexer::findNextTokenSkippingComments(), FuncDecl, and clang::tidy::utils::isSpellingLocInHeaderFile().
|
inlineoverride |
Definition at line 37 of file InlineFunctionDeclCheck.h.
|
inlineoverride |
Definition at line 29 of file InlineFunctionDeclCheck.h.
|
override |
Definition at line 45 of file InlineFunctionDeclCheck.cpp.