clang-tools 22.0.0git
clang::tidy::misc::MisleadingIdentifierCheck Class Reference

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>

Inheritance diagram for clang::tidy::misc::MisleadingIdentifierCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ MisleadingIdentifierCheck()

clang::tidy::misc::MisleadingIdentifierCheck::MisleadingIdentifierCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 138 of file MisleadingIdentifierCheck.cpp.

◆ ~MisleadingIdentifierCheck()

clang::tidy::misc::MisleadingIdentifierCheck::~MisleadingIdentifierCheck ( )
overridedefault

Member Function Documentation

◆ check()

void clang::tidy::misc::MisleadingIdentifierCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ registerMatchers()

void clang::tidy::misc::MisleadingIdentifierCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 156 of file MisleadingIdentifierCheck.cpp.


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