clang-tools 22.0.0git
|
Enforces consistent token representation for invoked binary, unary and overloaded operators in C++ code. More...
#include <OperatorsRepresentationCheck.h>
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 |
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.
clang::tidy::readability::OperatorsRepresentationCheck::OperatorsRepresentationCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 146 of file OperatorsRepresentationCheck.cpp.
References clang::tidy::readability::isNotOperatorStr().
|
override |
Definition at line 276 of file OperatorsRepresentationCheck.cpp.
References clang::tidy::readability::isSeparator(), clang::tidy::readability::needEscaping(), and clang::tidy::readability::translate().
|
override |
Definition at line 166 of file OperatorsRepresentationCheck.cpp.
|
override |
Definition at line 170 of file OperatorsRepresentationCheck.cpp.
|
override |
Definition at line 270 of file OperatorsRepresentationCheck.cpp.
|
override |
Definition at line 157 of file OperatorsRepresentationCheck.cpp.
References clang::tidy::utils::options::serializeStringList().