clang-tools 22.0.0git
clang::tidy::readability::RedundantInlineSpecifierCheck Class Reference

Detects redundant inline specifiers on function and variable declarations. More...

#include <RedundantInlineSpecifierCheck.h>

Inheritance diagram for clang::tidy::readability::RedundantInlineSpecifierCheck:
[legend]

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)

Detailed Description

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.

Constructor & Destructor Documentation

◆ RedundantInlineSpecifierCheck()

clang::tidy::readability::RedundantInlineSpecifierCheck::RedundantInlineSpecifierCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file RedundantInlineSpecifierCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::readability::RedundantInlineSpecifierCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 115 of file RedundantInlineSpecifierCheck.cpp.

◆ getCheckTraversalKind()

std::optional< TraversalKind > clang::tidy::readability::RedundantInlineSpecifierCheck::getCheckTraversalKind ( ) const
inlineoverride

Definition at line 28 of file RedundantInlineSpecifierCheck.h.

◆ handleMatchedDecl()

template<typename T>
void clang::tidy::readability::RedundantInlineSpecifierCheck::handleMatchedDecl ( const T * MatchedDecl,
const SourceManager & Sources,
const MatchFinder::MatchResult & Result,
StringRef Message )

◆ registerMatchers()

void clang::tidy::readability::RedundantInlineSpecifierCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 74 of file RedundantInlineSpecifierCheck.cpp.


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