clang-tools 23.0.0git
clang::tidy::llvm_check::TypeSwitchCaseTypesCheck Class Reference

Simplifies llvm::TypeSwitch Case calls by removing redundant explicit template arguments or replacing 'auto' lambda parameters with explicit types. More...

#include <TypeSwitchCaseTypesCheck.h>

Inheritance diagram for clang::tidy::llvm_check::TypeSwitchCaseTypesCheck:
[legend]

Public Member Functions

void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override

Detailed Description

Simplifies llvm::TypeSwitch Case calls by removing redundant explicit template arguments or replacing 'auto' lambda parameters with explicit types.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/llvm/type-switch-case-types.html

Definition at line 22 of file TypeSwitchCaseTypesCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::llvm_check::TypeSwitchCaseTypesCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 32 of file TypeSwitchCaseTypesCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::llvm_check::TypeSwitchCaseTypesCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 28 of file TypeSwitchCaseTypesCheck.h.

◆ registerMatchers()

void clang::tidy::llvm_check::TypeSwitchCaseTypesCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 17 of file TypeSwitchCaseTypesCheck.cpp.


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