|
clang-tools 22.0.0git
|
Finds identifiers that contain Unicode characters with right-to-left direction, which can be confusing as they may change the understanding of a whole statement line. More...
#include <MisleadingIdentifierCheck.h>
Public Member Functions | |
| MisleadingIdentifierCheck (StringRef Name, ClangTidyContext *Context) | |
| ~MisleadingIdentifierCheck () override | |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds identifiers that contain Unicode characters with right-to-left direction, which can be confusing as they may change the understanding of a whole statement line.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/misc/misleading-identifier.html
Definition at line 22 of file MisleadingIdentifierCheck.h.
| clang::tidy::misc::MisleadingIdentifierCheck::MisleadingIdentifierCheck | ( | StringRef | Name, |
| ClangTidyContext * | Context ) |
Definition at line 138 of file MisleadingIdentifierCheck.cpp.
|
overridedefault |
|
override |
Definition at line 144 of file MisleadingIdentifierCheck.cpp.
References clang::tidy::misc::hasRTLCharacters().
|
override |
Definition at line 156 of file MisleadingIdentifierCheck.cpp.