clang-tools
11.0.0
|
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. More... | |
bool | ShouldNotify () const |
NamingCheckFailure ()=default | |
Public Attributes | |
FailureInfo | Info |
ShouldFixStatus | FixStatus = ShouldFixStatus::ShouldFix |
llvm::DenseSet< unsigned > | RawUsageLocs |
A set of all the identifier usages starting SourceLocation, in their encoded form. More... | |
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 80 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 87 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 91 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 95 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), ShouldFix(), and ShouldNotify().
FailureInfo clang::tidy::RenamerClangTidyCheck::NamingCheckFailure::Info |
Definition at line 81 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), and ShouldFix().
llvm::DenseSet<unsigned> clang::tidy::RenamerClangTidyCheck::NamingCheckFailure::RawUsageLocs |
A set of all the identifier usages starting SourceLocation, in their encoded form.
Definition at line 99 of file RenamerClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), and clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit().