clang-tools 22.0.0git
|
Finds symbol which have confusable identifiers, i.e. More...
#include <ConfusableIdentifierCheck.h>
Public Member Functions | |
ConfusableIdentifierCheck (StringRef Name, ClangTidyContext *Context) | |
~ConfusableIdentifierCheck () | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | onEndOfTranslationUnit () override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Finds symbol which have confusable identifiers, i.e.
identifiers that look the same visually but have a different Unicode representation. If symbols are confusable but don't live in conflicting namespaces, they are not reported.
Definition at line 21 of file ConfusableIdentifierCheck.h.
clang::tidy::misc::ConfusableIdentifierCheck::ConfusableIdentifierCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 26 of file ConfusableIdentifierCheck.cpp.
|
default |
|
override |
Definition at line 155 of file ConfusableIdentifierCheck.cpp.
|
inlineoverride |
Definition at line 29 of file ConfusableIdentifierCheck.h.
|
override |
Definition at line 193 of file ConfusableIdentifierCheck.cpp.
References clang::tidy::misc::addToEnclosingContexts(), and clang::tidy::misc::skeleton().
|
override |
Definition at line 250 of file ConfusableIdentifierCheck.cpp.