clang-tools 22.0.0git
clang::tidy::llvm_libc::InlineFunctionDeclCheck Class Reference

Checks that explicitly and implicitly inline functions in headers files are tagged with the LIBC_INLINE macro. More...

#include <InlineFunctionDeclCheck.h>

Inheritance diagram for clang::tidy::llvm_libc::InlineFunctionDeclCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ InlineFunctionDeclCheck()

clang::tidy::llvm_libc::InlineFunctionDeclCheck::InlineFunctionDeclCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 40 of file InlineFunctionDeclCheck.cpp.

Member Function Documentation

◆ check()

void clang::tidy::llvm_libc::InlineFunctionDeclCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ getCheckTraversalKind()

std::optional< TraversalKind > clang::tidy::llvm_libc::InlineFunctionDeclCheck::getCheckTraversalKind ( ) const
inlineoverride

Definition at line 37 of file InlineFunctionDeclCheck.h.

◆ isLanguageVersionSupported()

bool clang::tidy::llvm_libc::InlineFunctionDeclCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 29 of file InlineFunctionDeclCheck.h.

◆ registerMatchers()

void clang::tidy::llvm_libc::InlineFunctionDeclCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 45 of file InlineFunctionDeclCheck.cpp.


The documentation for this class was generated from the following files: