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

Find redundant variable declarations. More...

#include <RedundantDeclarationCheck.h>

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

Public Member Functions

 RedundantDeclarationCheck (StringRef Name, ClangTidyContext *Context)
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Find redundant variable declarations.

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

Definition at line 20 of file RedundantDeclarationCheck.h.

Constructor & Destructor Documentation

◆ RedundantDeclarationCheck()

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

Definition at line 26 of file RedundantDeclarationCheck.cpp.

Member Function Documentation

◆ check()

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

Definition at line 48 of file RedundantDeclarationCheck.cpp.

◆ registerMatchers()

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

Definition at line 36 of file RedundantDeclarationCheck.cpp.

◆ storeOptions()

void clang::tidy::readability::RedundantDeclarationCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 31 of file RedundantDeclarationCheck.cpp.


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