clang-tools 20.0.0git
|
Holds an identifier name check failure, tracking the kind of the identifier, its possible fixup and the starting locations of all the identifier usages. More...
#include <RenamerClangTidyCheck.h>
Public Member Functions | |
bool | shouldFix () const |
Whether the failure should be fixed or not. | |
bool | shouldNotify () const |
NamingCheckFailure ()=default | |
Public Attributes | |
FailureInfo | Info |
ShouldFixStatus | FixStatus = ShouldFixStatus::ShouldFix |
llvm::DenseSet< SourceLocation > | RawUsageLocs |
A set of all the identifier usages starting SourceLocation. | |
Holds an identifier name check failure, tracking the kind of the identifier, its possible fixup and the starting locations of all the identifier usages.
Definition at line 82 of file RenamerClangTidyCheck.h.
|
default |
|
inline |
Whether the failure should be fixed or not.
e.g.: if the identifier was used or declared within a macro we won't offer a fixup for safety reasons.
Definition at line 89 of file RenamerClangTidyCheck.h.
References FixStatus, clang::tidy::RenamerClangTidyCheck::FailureInfo::Fixup, Info, and clang::tidy::RenamerClangTidyCheck::ShouldFix.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), and clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit().
|
inline |
Definition at line 93 of file RenamerClangTidyCheck.h.
References FixStatus, and clang::tidy::RenamerClangTidyCheck::IgnoreFailureThreshold.
Referenced by clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit().
ShouldFixStatus clang::tidy::RenamerClangTidyCheck::NamingCheckFailure::FixStatus = ShouldFixStatus::ShouldFix |
Definition at line 97 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), clang::tidy::RenamerClangTidyCheck::checkMacro(), clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), shouldFix(), and shouldNotify().
FailureInfo clang::tidy::RenamerClangTidyCheck::NamingCheckFailure::Info |
Definition at line 83 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), clang::tidy::RenamerClangTidyCheck::checkMacro(), clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), and shouldFix().
llvm::DenseSet<SourceLocation> clang::tidy::RenamerClangTidyCheck::NamingCheckFailure::RawUsageLocs |
A set of all the identifier usages starting SourceLocation.
Definition at line 100 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit().