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

Detects redundant access specifiers inside classes, structs, and unions. More...

#include <RedundantAccessSpecifiersCheck.h>

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

Public Member Functions

 RedundantAccessSpecifiersCheck (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

Detailed Description

Detects redundant access specifiers inside classes, structs, and unions.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-access-specifiers.html

Definition at line 20 of file RedundantAccessSpecifiersCheck.h.

Constructor & Destructor Documentation

◆ RedundantAccessSpecifiersCheck()

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

Definition at line 22 of file RedundantAccessSpecifiersCheck.h.

Member Function Documentation

◆ check()

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

Definition at line 23 of file RedundantAccessSpecifiersCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::readability::RedundantAccessSpecifiersCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file RedundantAccessSpecifiersCheck.h.

◆ registerMatchers()

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

Definition at line 17 of file RedundantAccessSpecifiersCheck.cpp.


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