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

Enforces consistent token representation for invoked binary, unary and overloaded operators in C++ code. More...

#include <OperatorsRepresentationCheck.h>

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

Public Member Functions

 OperatorsRepresentationCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override
std::optional< TraversalKind > getCheckTraversalKind () const override

Detailed Description

Enforces consistent token representation for invoked binary, unary and overloaded operators in C++ code.

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

Definition at line 22 of file OperatorsRepresentationCheck.h.

Constructor & Destructor Documentation

◆ OperatorsRepresentationCheck()

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

Member Function Documentation

◆ check()

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

◆ getCheckTraversalKind()

std::optional< TraversalKind > clang::tidy::readability::OperatorsRepresentationCheck::getCheckTraversalKind ( ) const
override

Definition at line 166 of file OperatorsRepresentationCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::readability::OperatorsRepresentationCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
override

Definition at line 170 of file OperatorsRepresentationCheck.cpp.

◆ registerMatchers()

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

Definition at line 270 of file OperatorsRepresentationCheck.cpp.

◆ storeOptions()

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

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