clang-tools 22.0.0git
|
Detects redundant inline specifiers on function and variable declarations. More...
#include <RedundantInlineSpecifierCheck.h>
Public Member Functions | |
RedundantInlineSpecifierCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
template<typename T> | |
void | handleMatchedDecl (const T *MatchedDecl, const SourceManager &Sources, const MatchFinder::MatchResult &Result, StringRef Message) |
Detects redundant inline specifiers on function and variable declarations.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-inline-specifier.html
Definition at line 21 of file RedundantInlineSpecifierCheck.h.
|
inline |
Definition at line 23 of file RedundantInlineSpecifierCheck.h.
|
override |
Definition at line 115 of file RedundantInlineSpecifierCheck.cpp.
|
inlineoverride |
Definition at line 28 of file RedundantInlineSpecifierCheck.h.
void clang::tidy::readability::RedundantInlineSpecifierCheck::handleMatchedDecl | ( | const T * | MatchedDecl, |
const SourceManager & | Sources, | ||
const MatchFinder::MatchResult & | Result, | ||
StringRef | Message ) |
Definition at line 106 of file RedundantInlineSpecifierCheck.cpp.
References clang::tidy::readability::getInlineTokenLocation().
|
override |
Definition at line 74 of file RedundantInlineSpecifierCheck.cpp.