clang-tools 20.0.0git
|
Base class for all clang-tidy checks. More...
#include <ClangTidyCheck.h>
Inherits ast_matchers::MatchFinder::MatchCallback.
Inherited by clang::tidy::RenamerClangTidyCheck, clang::tidy::abseil::DurationAdditionCheck, clang::tidy::abseil::DurationComparisonCheck, clang::tidy::abseil::DurationConversionCastCheck, clang::tidy::abseil::DurationDivisionCheck, clang::tidy::abseil::DurationFactoryFloatCheck, clang::tidy::abseil::DurationFactoryScaleCheck, clang::tidy::abseil::DurationSubtractionCheck, clang::tidy::abseil::DurationUnnecessaryConversionCheck, clang::tidy::abseil::FasterStrsplitDelimiterCheck, clang::tidy::abseil::NoInternalDependenciesCheck, clang::tidy::abseil::NoNamespaceCheck, clang::tidy::abseil::RedundantStrcatCallsCheck, clang::tidy::abseil::StrCatAppendCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::abseil::TimeComparisonCheck, clang::tidy::abseil::TimeSubtractionCheck, clang::tidy::abseil::UpgradeDurationConversionsCheck, clang::tidy::altera::IdDependentBackwardBranchCheck, clang::tidy::altera::KernelNameRestrictionCheck, clang::tidy::altera::SingleWorkItemBarrierCheck, clang::tidy::altera::StructPackAlignCheck, clang::tidy::altera::UnrollLoopsCheck, clang::tidy::android::CloexecCheck, clang::tidy::android::ComparisonInTempFailureRetryCheck, clang::tidy::boost::UseToStringCheck, clang::tidy::bugprone::ArgumentCommentCheck, clang::tidy::bugprone::AssertSideEffectCheck, clang::tidy::bugprone::AssignmentInIfConditionCheck, clang::tidy::bugprone::BadSignalToKillThreadCheck, clang::tidy::bugprone::BitwisePointerCastCheck, clang::tidy::bugprone::BoolPointerImplicitConversionCheck, clang::tidy::bugprone::BranchCloneCheck, clang::tidy::bugprone::CastingThroughVoidCheck, clang::tidy::bugprone::ChainedComparisonCheck, clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck, clang::tidy::bugprone::CopyConstructorInitCheck, clang::tidy::bugprone::CrtpConstructorAccessibilityCheck, clang::tidy::bugprone::DanglingHandleCheck, clang::tidy::bugprone::DynamicStaticInitializersCheck, clang::tidy::bugprone::EasilySwappableParametersCheck, clang::tidy::bugprone::EmptyCatchCheck, clang::tidy::bugprone::ExceptionEscapeCheck, clang::tidy::bugprone::FoldInitTypeCheck, clang::tidy::bugprone::ForwardDeclarationNamespaceCheck, clang::tidy::bugprone::ForwardingReferenceOverloadCheck, clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck, clang::tidy::bugprone::InaccurateEraseCheck, clang::tidy::bugprone::IncDecInConditionsCheck, clang::tidy::bugprone::IncorrectEnableIfCheck, clang::tidy::bugprone::IncorrectRoundingsCheck, clang::tidy::bugprone::InfiniteLoopCheck, clang::tidy::bugprone::IntegerDivisionCheck, clang::tidy::bugprone::LambdaFunctionNameCheck, clang::tidy::bugprone::MacroParenthesesCheck, clang::tidy::bugprone::MacroRepeatedSideEffectsCheck, clang::tidy::bugprone::MisplacedOperatorInStrlenInAllocCheck, clang::tidy::bugprone::MisplacedPointerArithmeticInAllocCheck, clang::tidy::bugprone::MisplacedWideningCastCheck, clang::tidy::bugprone::MoveForwardingReferenceCheck, clang::tidy::bugprone::MultiLevelImplicitPointerConversionCheck, clang::tidy::bugprone::MultipleNewInOneExpressionCheck, clang::tidy::bugprone::MultipleStatementMacroCheck, clang::tidy::bugprone::NoEscapeCheck, clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck, clang::tidy::bugprone::NondeterministicPointerIterationOrderCheck, clang::tidy::bugprone::NotNullTerminatedResultCheck, clang::tidy::bugprone::OptionalValueConversionCheck, clang::tidy::bugprone::ParentVirtualCallCheck, clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck, clang::tidy::bugprone::PosixReturnCheck, clang::tidy::bugprone::RedundantBranchConditionCheck, clang::tidy::bugprone::ReturnConstRefFromParameterCheck, clang::tidy::bugprone::SignalHandlerCheck, clang::tidy::bugprone::SignedCharMisuseCheck, clang::tidy::bugprone::SizeofContainerCheck, clang::tidy::bugprone::SizeofExpressionCheck, clang::tidy::bugprone::SmartPtrArrayMismatchCheck, clang::tidy::bugprone::SpuriouslyWakeUpFunctionsCheck, clang::tidy::bugprone::StandaloneEmptyCheck, clang::tidy::bugprone::StringConstructorCheck, clang::tidy::bugprone::StringIntegerAssignmentCheck, clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck, clang::tidy::bugprone::SuspiciousEnumUsageCheck, clang::tidy::bugprone::SuspiciousIncludeCheck, clang::tidy::bugprone::SuspiciousMemoryComparisonCheck, clang::tidy::bugprone::SuspiciousMemsetUsageCheck, clang::tidy::bugprone::SuspiciousMissingCommaCheck, clang::tidy::bugprone::SuspiciousReallocUsageCheck, clang::tidy::bugprone::SuspiciousSemicolonCheck, clang::tidy::bugprone::SuspiciousStringCompareCheck, clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck, clang::tidy::bugprone::SwappedArgumentsCheck, clang::tidy::bugprone::SwitchMissingDefaultCaseCheck, clang::tidy::bugprone::TaggedUnionMemberCountCheck, clang::tidy::bugprone::TerminatingContinueCheck, clang::tidy::bugprone::ThrowKeywordMissingCheck, clang::tidy::bugprone::TooSmallLoopVariableCheck, clang::tidy::bugprone::UncheckedOptionalAccessCheck, clang::tidy::bugprone::UndefinedMemoryManipulationCheck, clang::tidy::bugprone::UndelegatedConstructorCheck, clang::tidy::bugprone::UnhandledExceptionAtNewCheck, clang::tidy::bugprone::UnhandledSelfAssignmentCheck, clang::tidy::bugprone::UnsafeFunctionsCheck, clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck, clang::tidy::bugprone::UnusedRaiiCheck, clang::tidy::bugprone::UnusedReturnValueCheck, clang::tidy::bugprone::UseAfterMoveCheck, clang::tidy::bugprone::VirtualNearMissCheck, clang::tidy::cert::CommandProcessorCheck, clang::tidy::cert::DefaultOperatorNewAlignmentCheck, clang::tidy::cert::DontModifyStdNamespaceCheck, clang::tidy::cert::FloatLoopCounter, clang::tidy::cert::LimitedRandomnessCheck, clang::tidy::cert::MutatingCopyCheck, clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck, clang::tidy::cert::ProperlySeededRandomGeneratorCheck, clang::tidy::cert::SetLongJmpCheck, clang::tidy::cert::StaticObjectExceptionCheck, clang::tidy::cert::StrToNumCheck, clang::tidy::cert::ThrownExceptionTypeCheck, clang::tidy::cert::VariadicFunctionDefCheck, clang::tidy::concurrency::MtUnsafeCheck, clang::tidy::concurrency::ThreadCanceltypeAsynchronousCheck, clang::tidy::cppcoreguidelines::AvoidCapturingLambdaCoroutinesCheck, clang::tidy::cppcoreguidelines::AvoidConstOrRefDataMembersCheck, clang::tidy::cppcoreguidelines::AvoidDoWhileCheck, clang::tidy::cppcoreguidelines::AvoidGotoCheck, clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck, clang::tidy::cppcoreguidelines::AvoidReferenceCoroutineParametersCheck, clang::tidy::cppcoreguidelines::InitVariablesCheck, clang::tidy::cppcoreguidelines::InterfacesGlobalInitCheck, clang::tidy::cppcoreguidelines::MacroUsageCheck, clang::tidy::cppcoreguidelines::MisleadingCaptureDefaultByValueCheck, clang::tidy::cppcoreguidelines::MissingStdForwardCheck, clang::tidy::cppcoreguidelines::NarrowingConversionsCheck, clang::tidy::cppcoreguidelines::NoMallocCheck, clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck, clang::tidy::cppcoreguidelines::OwningMemoryCheck, clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck, clang::tidy::cppcoreguidelines::ProBoundsArrayToPointerDecayCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck, clang::tidy::cppcoreguidelines::ProTypeConstCastCheck, clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck, clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck, clang::tidy::cppcoreguidelines::ProTypeReinterpretCastCheck, clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck, clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck, clang::tidy::cppcoreguidelines::ProTypeVarargCheck, clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck, clang::tidy::cppcoreguidelines::SlicingCheck, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck, clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck, clang::tidy::darwin::AvoidSpinlockCheck, clang::tidy::darwin::DispatchOnceNonstaticCheck, clang::tidy::fuchsia::DefaultArgumentsCallsCheck, clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck, clang::tidy::fuchsia::MultipleInheritanceCheck, clang::tidy::fuchsia::OverloadedOperatorCheck, clang::tidy::fuchsia::StaticallyConstructedObjectsCheck, clang::tidy::fuchsia::TrailingReturnCheck, clang::tidy::fuchsia::VirtualInheritanceCheck, clang::tidy::google::DefaultArgumentsCheck, clang::tidy::google::ExplicitConstructorCheck, clang::tidy::google::UpgradeGoogletestCaseCheck, clang::tidy::google::build::ExplicitMakePairCheck, clang::tidy::google::build::UnnamedNamespaceInHeaderCheck, clang::tidy::google::build::UsingNamespaceDirectiveCheck, clang::tidy::google::objc::AvoidNSObjectNewCheck, clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck, clang::tidy::google::objc::FunctionNamingCheck, clang::tidy::google::objc::GlobalVariableDeclarationCheck, clang::tidy::google::readability::AvoidCStyleCastsCheck, clang::tidy::google::readability::AvoidUnderscoreInGoogletestNameCheck, clang::tidy::google::readability::GlobalNamesInHeadersCheck, clang::tidy::google::readability::TodoCommentCheck, clang::tidy::google::runtime::IntegerTypesCheck, clang::tidy::google::runtime::OverloadedUnaryAndCheck, clang::tidy::hicpp::ExceptionBaseclassCheck, clang::tidy::hicpp::MultiwayPathsCoveredCheck, clang::tidy::hicpp::NoAssemblerCheck, clang::tidy::hicpp::SignedBitwiseCheck, clang::tidy::linuxkernel::MustCheckErrsCheck, clang::tidy::llvm_check::IncludeOrderCheck, clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck, clang::tidy::llvm_check::PreferRegisterOverUnsignedCheck, clang::tidy::llvm_check::TwineLocalCheck, clang::tidy::llvm_libc::CalleeNamespaceCheck, clang::tidy::llvm_libc::ImplementationInNamespaceCheck, clang::tidy::llvm_libc::InlineFunctionDeclCheck, clang::tidy::misc::ConfusableIdentifierCheck, clang::tidy::misc::ConstCorrectnessCheck, clang::tidy::misc::CoroutineHostileRAIICheck, clang::tidy::misc::DefinitionsInHeadersCheck, clang::tidy::misc::HeaderIncludeCycleCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::MisleadingBidirectionalCheck, clang::tidy::misc::MisleadingIdentifierCheck, clang::tidy::misc::MisplacedConstCheck, clang::tidy::misc::NewDeleteOverloadsCheck, clang::tidy::misc::NoRecursionCheck, clang::tidy::misc::NonCopyableObjectsCheck, clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck, clang::tidy::misc::RedundantExpressionCheck, clang::tidy::misc::StaticAssertCheck, clang::tidy::misc::ThrowByValueCatchByReferenceCheck, clang::tidy::misc::UnconventionalAssignOperatorCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::misc::UnusedAliasDeclsCheck, clang::tidy::misc::UnusedParametersCheck, clang::tidy::misc::UnusedUsingDeclsCheck, clang::tidy::misc::UseAnonymousNamespaceCheck, clang::tidy::misc::UseInternalLinkageCheck, clang::tidy::modernize::AvoidBindCheck, clang::tidy::modernize::AvoidCArraysCheck, clang::tidy::modernize::ConcatNestedNamespacesCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::DeprecatedIosBaseAliasesCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MacroToEnumCheck, clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::RawStringLiteralCheck, clang::tidy::modernize::RedundantVoidArgCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::ReturnBracedInitListCheck, clang::tidy::modernize::ShrinkToFitCheck, clang::tidy::modernize::TypeTraitsCheck, clang::tidy::modernize::UnaryStaticAssertCheck, clang::tidy::modernize::UseAutoCheck, clang::tidy::modernize::UseBoolLiteralsCheck, clang::tidy::modernize::UseConstraintsCheck, clang::tidy::modernize::UseDefaultMemberInitCheck, clang::tidy::modernize::UseDesignatedInitializersCheck, clang::tidy::modernize::UseEmplaceCheck, clang::tidy::modernize::UseEqualsDefaultCheck, clang::tidy::modernize::UseEqualsDeleteCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseNodiscardCheck, clang::tidy::modernize::UseNoexceptCheck, clang::tidy::modernize::UseNullptrCheck, clang::tidy::modernize::UseOverrideCheck, clang::tidy::modernize::UseStartsEndsWithCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTrailingReturnTypeCheck, clang::tidy::modernize::UseTransparentFunctorsCheck, clang::tidy::modernize::UseUncaughtExceptionsCheck, clang::tidy::modernize::UseUsingCheck, clang::tidy::mpi::BufferDerefCheck, clang::tidy::mpi::TypeMismatchCheck, clang::tidy::objc::AssertEquals, clang::tidy::objc::AvoidNSErrorInitCheck, clang::tidy::objc::DeallocInCategoryCheck, clang::tidy::objc::ForbiddenSubclassingCheck, clang::tidy::objc::MissingHashCheck, clang::tidy::objc::NSDateFormatterCheck, clang::tidy::objc::NSInvocationArgumentLifetimeCheck, clang::tidy::objc::PropertyDeclarationCheck, clang::tidy::objc::SuperSelfCheck, clang::tidy::openmp::ExceptionEscapeCheck, clang::tidy::openmp::UseDefaultNoneCheck, clang::tidy::performance::AvoidEndlCheck, clang::tidy::performance::EnumSizeCheck, clang::tidy::performance::FasterStringFindCheck, clang::tidy::performance::ForRangeCopyCheck, clang::tidy::performance::ImplicitConversionInLoopCheck, clang::tidy::performance::InefficientAlgorithmCheck, clang::tidy::performance::InefficientStringConcatenationCheck, clang::tidy::performance::InefficientVectorOperationCheck, clang::tidy::performance::MoveConstArgCheck, clang::tidy::performance::MoveConstructorInitCheck, clang::tidy::performance::NoAutomaticMoveCheck, clang::tidy::performance::NoIntToPtrCheck, clang::tidy::performance::NoexceptFunctionBaseCheck, clang::tidy::performance::TriviallyDestructibleCheck, clang::tidy::performance::TypePromotionInMathFnCheck, clang::tidy::performance::UnnecessaryCopyInitialization, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::RestrictSystemIncludesCheck, clang::tidy::portability::SIMDIntrinsicsCheck, clang::tidy::portability::StdAllocatorConstCheck, clang::tidy::portability::TemplateVirtualMemberFunctionCheck, clang::tidy::readability::AvoidConstParamsInDecls, clang::tidy::readability::AvoidNestedConditionalOperatorCheck, clang::tidy::readability::AvoidReturnWithVoidValueCheck, clang::tidy::readability::AvoidUnconditionalPreprocessorIfCheck, clang::tidy::readability::BracesAroundStatementsCheck, clang::tidy::readability::ConstReturnTypeCheck, clang::tidy::readability::ContainerContainsCheck, clang::tidy::readability::ContainerDataPointerCheck, clang::tidy::readability::ContainerSizeEmptyCheck, clang::tidy::readability::ConvertMemberFunctionsToStatic, clang::tidy::readability::DeleteNullPointerCheck, clang::tidy::readability::DuplicateIncludeCheck, clang::tidy::readability::ElseAfterReturnCheck, clang::tidy::readability::EnumInitialValueCheck, clang::tidy::readability::FunctionCognitiveComplexityCheck, clang::tidy::readability::FunctionSizeCheck, clang::tidy::readability::IdentifierLengthCheck, clang::tidy::readability::ImplicitBoolConversionCheck, clang::tidy::readability::InconsistentDeclarationParameterNameCheck, clang::tidy::readability::IsolateDeclarationCheck, clang::tidy::readability::MagicNumbersCheck, clang::tidy::readability::MakeMemberFunctionConstCheck, clang::tidy::readability::MathMissingParenthesesCheck, clang::tidy::readability::MisleadingIndentationCheck, clang::tidy::readability::MisplacedArrayIndexCheck, clang::tidy::readability::NamedParameterCheck, clang::tidy::readability::NamespaceCommentCheck, clang::tidy::readability::NonConstParameterCheck, clang::tidy::readability::OperatorsRepresentationCheck, clang::tidy::readability::QualifiedAutoCheck, clang::tidy::readability::RedundantAccessSpecifiersCheck, clang::tidy::readability::RedundantCastingCheck, clang::tidy::readability::RedundantControlFlowCheck, clang::tidy::readability::RedundantDeclarationCheck, clang::tidy::readability::RedundantFunctionPtrDereferenceCheck, clang::tidy::readability::RedundantInlineSpecifierCheck, clang::tidy::readability::RedundantMemberInitCheck, clang::tidy::readability::RedundantPreprocessorCheck, clang::tidy::readability::RedundantSmartptrGetCheck, clang::tidy::readability::RedundantStringCStrCheck, clang::tidy::readability::RedundantStringInitCheck, clang::tidy::readability::ReferenceToConstructedTemporaryCheck, clang::tidy::readability::SimplifyBooleanExprCheck, clang::tidy::readability::SimplifySubscriptExprCheck, clang::tidy::readability::StaticAccessedThroughInstanceCheck, clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck, clang::tidy::readability::StringCompareCheck, clang::tidy::readability::SuspiciousCallArgumentCheck, clang::tidy::readability::UniqueptrDeleteReleaseCheck, clang::tidy::readability::UppercaseLiteralSuffixCheck, clang::tidy::readability::UseAnyOfAllOfCheck, clang::tidy::readability::UseStdMinMaxCheck, clang::tidy::utils::HeaderGuardCheck, clang::tidy::utils::TransformerClangTidyCheck, clang::tidy::utils::UseRangesCheck, and clang::tidy::zircon::TemporaryObjectsCheck.
Classes | |
class | OptionsView |
Provides access to the ClangTidyCheck options via check-local names. More... | |
Public Member Functions | |
ClangTidyCheck (StringRef CheckName, ClangTidyContext *Context) | |
Initializes the check with CheckName and Context . | |
virtual bool | isLanguageVersionSupported (const LangOptions &LangOpts) const |
Override this to disable registering matchers and PP callbacks if an invalid language version is being used. | |
virtual void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) |
Override this to register PPCallbacks in the preprocessor. | |
virtual void | registerMatchers (ast_matchers::MatchFinder *Finder) |
Override this to register AST matchers with Finder . | |
virtual void | check (const ast_matchers::MatchFinder::MatchResult &Result) |
ClangTidyChecks that register ASTMatchers should do the actual work in here. | |
DiagnosticBuilder | diag (SourceLocation Loc, StringRef Description, DiagnosticIDs::Level Level=DiagnosticIDs::Warning) |
Add a diagnostic with the check's name. | |
DiagnosticBuilder | diag (StringRef Description, DiagnosticIDs::Level Level=DiagnosticIDs::Warning) |
Add a diagnostic with the check's name. | |
DiagnosticBuilder | configurationDiag (StringRef Description, DiagnosticIDs::Level Level=DiagnosticIDs::Warning) const |
Adds a diagnostic to report errors in the check's configuration. | |
virtual void | storeOptions (ClangTidyOptions::OptionMap &Options) |
Should store all options supported by this check with their current values or default values for options that haven't been overridden. | |
Protected Member Functions | |
StringRef | getCurrentMainFile () const |
Returns the main file name of the current translation unit. | |
const LangOptions & | getLangOpts () const |
Returns the language options from the context. | |
bool | areDiagsSelfContained () const |
Returns true when the check is run in a use case when only 1 fix will be applied at a time. | |
StringRef | getID () const override |
Protected Attributes | |
OptionsView | Options |
Base class for all clang-tidy checks.
To implement a ClangTidyCheck
, write a subclass and override some of the base class's methods. E.g. to implement a check that validates namespace declarations, override registerMatchers
:
and then override check(const MatchResult &Result)
to do the actual check for each match.
A new ClangTidyCheck
instance is created per translation unit.
FIXME: Figure out whether carrying information from one TU to another is useful/necessary.
Definition at line 53 of file ClangTidyCheck.h.
clang::tidy::ClangTidyCheck::ClangTidyCheck | ( | StringRef | CheckName, |
ClangTidyContext * | Context | ||
) |
Initializes the check with CheckName
and Context
.
Derived classes must implement the constructor with this signature or delegate it. If a check needs to read options, it can do this in the constructor using the Options.get() methods below.
Definition at line 18 of file ClangTidyCheck.cpp.
|
inlineprotected |
Returns true when the check is run in a use case when only 1 fix will be applied at a time.
Definition at line 497 of file ClangTidyCheck.h.
Referenced by clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck::check(), and clang::tidy::readability::SimplifyBooleanExprCheck::Visitor::TraverseUnaryOperator().
|
inlinevirtual |
ClangTidyChecks
that register ASTMatchers should do the actual work in here.
Reimplemented in clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::readability::ContainerContainsCheck, clang::tidy::RenamerClangTidyCheck, clang::tidy::utils::TransformerClangTidyCheck, clang::tidy::utils::UseRangesCheck, clang::tidy::performance::NoexceptFunctionBaseCheck, clang::tidy::abseil::DurationAdditionCheck, clang::tidy::abseil::DurationComparisonCheck, clang::tidy::abseil::DurationConversionCastCheck, clang::tidy::abseil::DurationDivisionCheck, clang::tidy::abseil::DurationFactoryFloatCheck, clang::tidy::abseil::DurationFactoryScaleCheck, clang::tidy::abseil::DurationSubtractionCheck, clang::tidy::abseil::DurationUnnecessaryConversionCheck, clang::tidy::abseil::FasterStrsplitDelimiterCheck, clang::tidy::abseil::NoInternalDependenciesCheck, clang::tidy::abseil::NoNamespaceCheck, clang::tidy::abseil::RedundantStrcatCallsCheck, clang::tidy::abseil::StrCatAppendCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::abseil::TimeComparisonCheck, clang::tidy::abseil::TimeSubtractionCheck, clang::tidy::abseil::UpgradeDurationConversionsCheck, clang::tidy::altera::IdDependentBackwardBranchCheck, clang::tidy::altera::SingleWorkItemBarrierCheck, clang::tidy::altera::StructPackAlignCheck, clang::tidy::altera::UnrollLoopsCheck, clang::tidy::android::CloexecAccept4Check, clang::tidy::android::CloexecAcceptCheck, clang::tidy::android::CloexecCreatCheck, clang::tidy::android::CloexecDupCheck, clang::tidy::android::CloexecEpollCreate1Check, clang::tidy::android::CloexecEpollCreateCheck, clang::tidy::android::CloexecFopenCheck, clang::tidy::android::CloexecInotifyInit1Check, clang::tidy::android::CloexecInotifyInitCheck, clang::tidy::android::CloexecMemfdCreateCheck, clang::tidy::android::CloexecOpenCheck, clang::tidy::android::CloexecPipe2Check, clang::tidy::android::CloexecPipeCheck, clang::tidy::android::CloexecSocketCheck, clang::tidy::android::ComparisonInTempFailureRetryCheck, clang::tidy::boost::UseToStringCheck, clang::tidy::bugprone::ArgumentCommentCheck, clang::tidy::bugprone::AssertSideEffectCheck, clang::tidy::bugprone::AssignmentInIfConditionCheck, clang::tidy::bugprone::BadSignalToKillThreadCheck, clang::tidy::bugprone::BitwisePointerCastCheck, clang::tidy::bugprone::BoolPointerImplicitConversionCheck, clang::tidy::bugprone::BranchCloneCheck, clang::tidy::bugprone::CastingThroughVoidCheck, clang::tidy::bugprone::ChainedComparisonCheck, clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck, clang::tidy::bugprone::CopyConstructorInitCheck, clang::tidy::bugprone::CrtpConstructorAccessibilityCheck, clang::tidy::bugprone::DanglingHandleCheck, clang::tidy::bugprone::DynamicStaticInitializersCheck, clang::tidy::bugprone::EasilySwappableParametersCheck, clang::tidy::bugprone::EmptyCatchCheck, clang::tidy::bugprone::ExceptionEscapeCheck, clang::tidy::bugprone::FoldInitTypeCheck, clang::tidy::bugprone::ForwardDeclarationNamespaceCheck, clang::tidy::bugprone::ForwardingReferenceOverloadCheck, clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck, clang::tidy::bugprone::InaccurateEraseCheck, clang::tidy::bugprone::IncDecInConditionsCheck, clang::tidy::bugprone::IncorrectEnableIfCheck, clang::tidy::bugprone::IncorrectRoundingsCheck, clang::tidy::bugprone::InfiniteLoopCheck, clang::tidy::bugprone::IntegerDivisionCheck, clang::tidy::bugprone::LambdaFunctionNameCheck, clang::tidy::bugprone::MisplacedOperatorInStrlenInAllocCheck, clang::tidy::bugprone::MisplacedPointerArithmeticInAllocCheck, clang::tidy::bugprone::MisplacedWideningCastCheck, clang::tidy::bugprone::MoveForwardingReferenceCheck, clang::tidy::bugprone::MultiLevelImplicitPointerConversionCheck, clang::tidy::bugprone::MultipleNewInOneExpressionCheck, clang::tidy::bugprone::MultipleStatementMacroCheck, clang::tidy::bugprone::NoEscapeCheck, clang::tidy::bugprone::NondeterministicPointerIterationOrderCheck, clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck, clang::tidy::bugprone::NotNullTerminatedResultCheck, clang::tidy::bugprone::OptionalValueConversionCheck, clang::tidy::bugprone::ParentVirtualCallCheck, clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck, clang::tidy::bugprone::PosixReturnCheck, clang::tidy::bugprone::RedundantBranchConditionCheck, clang::tidy::bugprone::ReturnConstRefFromParameterCheck, clang::tidy::bugprone::SignalHandlerCheck, clang::tidy::bugprone::SignedCharMisuseCheck, clang::tidy::bugprone::SizeofContainerCheck, clang::tidy::bugprone::SizeofExpressionCheck, clang::tidy::bugprone::SmartPtrArrayMismatchCheck, clang::tidy::bugprone::SpuriouslyWakeUpFunctionsCheck, clang::tidy::bugprone::StandaloneEmptyCheck, clang::tidy::bugprone::StringConstructorCheck, clang::tidy::bugprone::StringIntegerAssignmentCheck, clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck, clang::tidy::bugprone::SuspiciousEnumUsageCheck, clang::tidy::bugprone::SuspiciousMemoryComparisonCheck, clang::tidy::bugprone::SuspiciousMemsetUsageCheck, clang::tidy::bugprone::SuspiciousMissingCommaCheck, clang::tidy::bugprone::SuspiciousReallocUsageCheck, clang::tidy::bugprone::SuspiciousSemicolonCheck, clang::tidy::bugprone::SuspiciousStringCompareCheck, clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck, clang::tidy::bugprone::SwappedArgumentsCheck, clang::tidy::bugprone::SwitchMissingDefaultCaseCheck, clang::tidy::bugprone::TaggedUnionMemberCountCheck, clang::tidy::bugprone::TerminatingContinueCheck, clang::tidy::bugprone::ThrowKeywordMissingCheck, clang::tidy::bugprone::TooSmallLoopVariableCheck, clang::tidy::bugprone::UncheckedOptionalAccessCheck, clang::tidy::bugprone::UndefinedMemoryManipulationCheck, clang::tidy::bugprone::UndelegatedConstructorCheck, clang::tidy::bugprone::UnhandledExceptionAtNewCheck, clang::tidy::bugprone::UnhandledSelfAssignmentCheck, clang::tidy::bugprone::UnsafeFunctionsCheck, clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck, clang::tidy::bugprone::UnusedRaiiCheck, clang::tidy::bugprone::UnusedReturnValueCheck, clang::tidy::bugprone::UseAfterMoveCheck, clang::tidy::bugprone::VirtualNearMissCheck, clang::tidy::cert::CommandProcessorCheck, clang::tidy::cert::DefaultOperatorNewAlignmentCheck, clang::tidy::cert::DontModifyStdNamespaceCheck, clang::tidy::cert::FloatLoopCounter, clang::tidy::cert::LimitedRandomnessCheck, clang::tidy::cert::MutatingCopyCheck, clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck, clang::tidy::cert::ProperlySeededRandomGeneratorCheck, clang::tidy::cert::SetLongJmpCheck, clang::tidy::cert::StaticObjectExceptionCheck, clang::tidy::cert::StrToNumCheck, clang::tidy::cert::ThrownExceptionTypeCheck, clang::tidy::cert::VariadicFunctionDefCheck, clang::tidy::concurrency::MtUnsafeCheck, clang::tidy::concurrency::ThreadCanceltypeAsynchronousCheck, clang::tidy::cppcoreguidelines::AvoidCapturingLambdaCoroutinesCheck, clang::tidy::cppcoreguidelines::AvoidConstOrRefDataMembersCheck, clang::tidy::cppcoreguidelines::AvoidDoWhileCheck, clang::tidy::cppcoreguidelines::AvoidGotoCheck, clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck, clang::tidy::cppcoreguidelines::AvoidReferenceCoroutineParametersCheck, clang::tidy::cppcoreguidelines::InitVariablesCheck, clang::tidy::cppcoreguidelines::InterfacesGlobalInitCheck, clang::tidy::cppcoreguidelines::MisleadingCaptureDefaultByValueCheck, clang::tidy::cppcoreguidelines::MissingStdForwardCheck, clang::tidy::cppcoreguidelines::NarrowingConversionsCheck, clang::tidy::cppcoreguidelines::NoMallocCheck, clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck, clang::tidy::cppcoreguidelines::OwningMemoryCheck, clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck, clang::tidy::cppcoreguidelines::ProBoundsArrayToPointerDecayCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck, clang::tidy::cppcoreguidelines::ProTypeConstCastCheck, clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck, clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck, clang::tidy::cppcoreguidelines::ProTypeReinterpretCastCheck, clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck, clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck, clang::tidy::cppcoreguidelines::ProTypeVarargCheck, clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck, clang::tidy::cppcoreguidelines::SlicingCheck, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck, clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck, clang::tidy::darwin::AvoidSpinlockCheck, clang::tidy::darwin::DispatchOnceNonstaticCheck, clang::tidy::fuchsia::DefaultArgumentsCallsCheck, clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck, clang::tidy::fuchsia::MultipleInheritanceCheck, clang::tidy::fuchsia::OverloadedOperatorCheck, clang::tidy::fuchsia::StaticallyConstructedObjectsCheck, clang::tidy::fuchsia::TrailingReturnCheck, clang::tidy::fuchsia::VirtualInheritanceCheck, clang::tidy::google::readability::AvoidCStyleCastsCheck, clang::tidy::google::objc::AvoidNSObjectNewCheck, clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck, clang::tidy::google::DefaultArgumentsCheck, clang::tidy::google::ExplicitConstructorCheck, clang::tidy::google::build::ExplicitMakePairCheck, clang::tidy::google::objc::FunctionNamingCheck, clang::tidy::google::readability::GlobalNamesInHeadersCheck, clang::tidy::google::objc::GlobalVariableDeclarationCheck, clang::tidy::google::runtime::IntegerTypesCheck, clang::tidy::google::runtime::OverloadedUnaryAndCheck, clang::tidy::google::build::UnnamedNamespaceInHeaderCheck, clang::tidy::google::UpgradeGoogletestCaseCheck, clang::tidy::google::build::UsingNamespaceDirectiveCheck, clang::tidy::hicpp::ExceptionBaseclassCheck, clang::tidy::hicpp::MultiwayPathsCoveredCheck, clang::tidy::hicpp::NoAssemblerCheck, clang::tidy::hicpp::SignedBitwiseCheck, clang::tidy::linuxkernel::MustCheckErrsCheck, clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck, clang::tidy::llvm_check::PreferRegisterOverUnsignedCheck, clang::tidy::llvm_check::TwineLocalCheck, clang::tidy::llvm_libc::CalleeNamespaceCheck, clang::tidy::llvm_libc::ImplementationInNamespaceCheck, clang::tidy::llvm_libc::InlineFunctionDeclCheck, clang::tidy::misc::ConfusableIdentifierCheck, clang::tidy::misc::ConstCorrectnessCheck, clang::tidy::misc::CoroutineHostileRAIICheck, clang::tidy::misc::DefinitionsInHeadersCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::MisleadingBidirectionalCheck, clang::tidy::misc::MisleadingIdentifierCheck, clang::tidy::misc::MisplacedConstCheck, clang::tidy::misc::NewDeleteOverloadsCheck, clang::tidy::misc::NonCopyableObjectsCheck, clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck, clang::tidy::misc::NoRecursionCheck, clang::tidy::misc::RedundantExpressionCheck, clang::tidy::misc::StaticAssertCheck, clang::tidy::misc::ThrowByValueCatchByReferenceCheck, clang::tidy::misc::UnconventionalAssignOperatorCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::misc::UnusedAliasDeclsCheck, clang::tidy::misc::UnusedParametersCheck, clang::tidy::misc::UnusedUsingDeclsCheck, clang::tidy::misc::UseAnonymousNamespaceCheck, clang::tidy::misc::UseInternalLinkageCheck, clang::tidy::modernize::AvoidBindCheck, clang::tidy::modernize::AvoidCArraysCheck, clang::tidy::modernize::ConcatNestedNamespacesCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::DeprecatedIosBaseAliasesCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MacroToEnumCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::RawStringLiteralCheck, clang::tidy::modernize::RedundantVoidArgCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::ReturnBracedInitListCheck, clang::tidy::modernize::ShrinkToFitCheck, clang::tidy::modernize::TypeTraitsCheck, clang::tidy::modernize::UnaryStaticAssertCheck, clang::tidy::modernize::UseAutoCheck, clang::tidy::modernize::UseBoolLiteralsCheck, clang::tidy::modernize::UseConstraintsCheck, clang::tidy::modernize::UseDefaultMemberInitCheck, clang::tidy::modernize::UseDesignatedInitializersCheck, clang::tidy::modernize::UseEmplaceCheck, clang::tidy::modernize::UseEqualsDefaultCheck, clang::tidy::modernize::UseEqualsDeleteCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseNodiscardCheck, clang::tidy::modernize::UseNoexceptCheck, clang::tidy::modernize::UseNullptrCheck, clang::tidy::modernize::UseOverrideCheck, clang::tidy::modernize::UseStartsEndsWithCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTrailingReturnTypeCheck, clang::tidy::modernize::UseTransparentFunctorsCheck, clang::tidy::modernize::UseUncaughtExceptionsCheck, clang::tidy::modernize::UseUsingCheck, clang::tidy::mpi::BufferDerefCheck, clang::tidy::mpi::TypeMismatchCheck, clang::tidy::objc::AssertEquals, clang::tidy::objc::AvoidNSErrorInitCheck, clang::tidy::objc::DeallocInCategoryCheck, clang::tidy::objc::ForbiddenSubclassingCheck, clang::tidy::objc::MissingHashCheck, clang::tidy::objc::NSDateFormatterCheck, clang::tidy::objc::NSInvocationArgumentLifetimeCheck, clang::tidy::objc::PropertyDeclarationCheck, clang::tidy::objc::SuperSelfCheck, clang::tidy::openmp::ExceptionEscapeCheck, clang::tidy::openmp::UseDefaultNoneCheck, clang::tidy::performance::AvoidEndlCheck, clang::tidy::performance::EnumSizeCheck, clang::tidy::performance::FasterStringFindCheck, clang::tidy::performance::ForRangeCopyCheck, clang::tidy::performance::ImplicitConversionInLoopCheck, clang::tidy::performance::InefficientAlgorithmCheck, clang::tidy::performance::InefficientStringConcatenationCheck, clang::tidy::performance::InefficientVectorOperationCheck, clang::tidy::performance::MoveConstArgCheck, clang::tidy::performance::MoveConstructorInitCheck, clang::tidy::performance::NoAutomaticMoveCheck, clang::tidy::performance::NoIntToPtrCheck, clang::tidy::performance::TriviallyDestructibleCheck, clang::tidy::performance::TypePromotionInMathFnCheck, clang::tidy::performance::UnnecessaryCopyInitialization, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::SIMDIntrinsicsCheck, clang::tidy::portability::StdAllocatorConstCheck, clang::tidy::portability::TemplateVirtualMemberFunctionCheck, clang::tidy::readability::AvoidConstParamsInDecls, clang::tidy::readability::AvoidNestedConditionalOperatorCheck, clang::tidy::readability::AvoidReturnWithVoidValueCheck, clang::tidy::readability::BracesAroundStatementsCheck, clang::tidy::readability::ConstReturnTypeCheck, clang::tidy::readability::ContainerDataPointerCheck, clang::tidy::readability::ContainerSizeEmptyCheck, clang::tidy::readability::ConvertMemberFunctionsToStatic, clang::tidy::readability::DeleteNullPointerCheck, clang::tidy::readability::ElseAfterReturnCheck, clang::tidy::readability::EnumInitialValueCheck, clang::tidy::readability::FunctionCognitiveComplexityCheck, clang::tidy::readability::FunctionSizeCheck, clang::tidy::readability::IdentifierLengthCheck, clang::tidy::readability::ImplicitBoolConversionCheck, clang::tidy::readability::InconsistentDeclarationParameterNameCheck, clang::tidy::readability::IsolateDeclarationCheck, clang::tidy::readability::MagicNumbersCheck, clang::tidy::readability::MakeMemberFunctionConstCheck, clang::tidy::readability::MathMissingParenthesesCheck, clang::tidy::readability::MisleadingIndentationCheck, clang::tidy::readability::MisplacedArrayIndexCheck, clang::tidy::readability::NamedParameterCheck, clang::tidy::readability::NamespaceCommentCheck, clang::tidy::readability::NonConstParameterCheck, clang::tidy::readability::OperatorsRepresentationCheck, clang::tidy::readability::QualifiedAutoCheck, clang::tidy::readability::RedundantAccessSpecifiersCheck, clang::tidy::readability::RedundantCastingCheck, clang::tidy::readability::RedundantControlFlowCheck, clang::tidy::readability::RedundantDeclarationCheck, clang::tidy::readability::RedundantFunctionPtrDereferenceCheck, clang::tidy::readability::RedundantInlineSpecifierCheck, clang::tidy::readability::RedundantMemberInitCheck, clang::tidy::readability::RedundantSmartptrGetCheck, clang::tidy::readability::RedundantStringCStrCheck, clang::tidy::readability::RedundantStringInitCheck, clang::tidy::readability::ReferenceToConstructedTemporaryCheck, clang::tidy::readability::SimplifyBooleanExprCheck, clang::tidy::readability::SimplifySubscriptExprCheck, clang::tidy::readability::StaticAccessedThroughInstanceCheck, clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck, clang::tidy::readability::StringCompareCheck, clang::tidy::readability::SuspiciousCallArgumentCheck, clang::tidy::readability::UniqueptrDeleteReleaseCheck, clang::tidy::readability::UppercaseLiteralSuffixCheck, clang::tidy::readability::UseAnyOfAllOfCheck, clang::tidy::readability::UseStdMinMaxCheck, and clang::tidy::zircon::TemporaryObjectsCheck.
Definition at line 112 of file ClangTidyCheck.h.
DiagnosticBuilder clang::tidy::ClangTidyCheck::configurationDiag | ( | StringRef | Description, |
DiagnosticIDs::Level | Level = DiagnosticIDs::Warning |
||
) | const |
Adds a diagnostic to report errors in the check's configuration.
Definition at line 37 of file ClangTidyCheck.cpp.
References clang::tidy::ClangTidyContext::configurationDiag().
Referenced by clang::tidy::misc::ConstCorrectnessCheck::ConstCorrectnessCheck(), clang::tidy::misc::IncludeCleanerCheck::IncludeCleanerCheck(), clang::tidy::modernize::LoopConvertCheck::LoopConvertCheck(), clang::tidy::readability::SimplifyBooleanExprCheck::SimplifyBooleanExprCheck(), clang::tidy::bugprone::TaggedUnionMemberCountCheck::TaggedUnionMemberCountCheck(), and clang::tidy::modernize::UseStdNumbersCheck::UseStdNumbersCheck().
DiagnosticBuilder clang::tidy::ClangTidyCheck::diag | ( | SourceLocation | Loc, |
StringRef | Description, | ||
DiagnosticIDs::Level | Level = DiagnosticIDs::Warning |
||
) |
Add a diagnostic with the check's name.
Definition at line 25 of file ClangTidyCheck.cpp.
References clang::tidy::ClangTidyContext::diag(), and Loc.
Referenced by clang::tidy::modernize::MinMaxUseInitializerListCheck::check(), clang::tidy::readability::ContainerContainsCheck::check(), clang::tidy::utils::TransformerClangTidyCheck::check(), clang::tidy::abseil::DurationAdditionCheck::check(), clang::tidy::abseil::DurationComparisonCheck::check(), clang::tidy::abseil::DurationConversionCastCheck::check(), clang::tidy::abseil::DurationDivisionCheck::check(), clang::tidy::abseil::DurationFactoryFloatCheck::check(), clang::tidy::abseil::DurationFactoryScaleCheck::check(), clang::tidy::abseil::DurationSubtractionCheck::check(), clang::tidy::abseil::DurationUnnecessaryConversionCheck::check(), clang::tidy::abseil::FasterStrsplitDelimiterCheck::check(), clang::tidy::abseil::NoInternalDependenciesCheck::check(), clang::tidy::abseil::NoNamespaceCheck::check(), clang::tidy::abseil::RedundantStrcatCallsCheck::check(), clang::tidy::abseil::StrCatAppendCheck::check(), clang::tidy::abseil::StringFindStartswithCheck::check(), clang::tidy::abseil::TimeComparisonCheck::check(), clang::tidy::abseil::UpgradeDurationConversionsCheck::check(), clang::tidy::altera::IdDependentBackwardBranchCheck::check(), clang::tidy::altera::SingleWorkItemBarrierCheck::check(), clang::tidy::altera::StructPackAlignCheck::check(), clang::tidy::altera::UnrollLoopsCheck::check(), clang::tidy::android::ComparisonInTempFailureRetryCheck::check(), clang::tidy::boost::UseToStringCheck::check(), clang::tidy::bugprone::AssertSideEffectCheck::check(), clang::tidy::bugprone::BadSignalToKillThreadCheck::check(), clang::tidy::bugprone::BitwisePointerCastCheck::check(), clang::tidy::bugprone::BranchCloneCheck::check(), clang::tidy::bugprone::CastingThroughVoidCheck::check(), clang::tidy::bugprone::ChainedComparisonCheck::check(), clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck::check(), clang::tidy::bugprone::CopyConstructorInitCheck::check(), clang::tidy::bugprone::DanglingHandleCheck::check(), clang::tidy::bugprone::DynamicStaticInitializersCheck::check(), clang::tidy::bugprone::EasilySwappableParametersCheck::check(), clang::tidy::bugprone::EmptyCatchCheck::check(), clang::tidy::bugprone::ForwardingReferenceOverloadCheck::check(), clang::tidy::bugprone::InaccurateEraseCheck::check(), clang::tidy::bugprone::IncDecInConditionsCheck::check(), clang::tidy::bugprone::IncorrectEnableIfCheck::check(), clang::tidy::bugprone::IncorrectRoundingsCheck::check(), clang::tidy::bugprone::InfiniteLoopCheck::check(), clang::tidy::bugprone::IntegerDivisionCheck::check(), clang::tidy::bugprone::LambdaFunctionNameCheck::check(), clang::tidy::bugprone::MisplacedOperatorInStrlenInAllocCheck::check(), clang::tidy::bugprone::MisplacedPointerArithmeticInAllocCheck::check(), clang::tidy::bugprone::MisplacedWideningCastCheck::check(), clang::tidy::bugprone::MoveForwardingReferenceCheck::check(), clang::tidy::bugprone::MultiLevelImplicitPointerConversionCheck::check(), clang::tidy::bugprone::MultipleNewInOneExpressionCheck::check(), clang::tidy::bugprone::MultipleStatementMacroCheck::check(), clang::tidy::bugprone::NoEscapeCheck::check(), clang::tidy::bugprone::NondeterministicPointerIterationOrderCheck::check(), clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck::check(), clang::tidy::bugprone::OptionalValueConversionCheck::check(), clang::tidy::bugprone::ParentVirtualCallCheck::check(), clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck::check(), clang::tidy::bugprone::PosixReturnCheck::check(), clang::tidy::bugprone::RedundantBranchConditionCheck::check(), clang::tidy::bugprone::ReturnConstRefFromParameterCheck::check(), clang::tidy::bugprone::SignalHandlerCheck::check(), clang::tidy::bugprone::SignedCharMisuseCheck::check(), clang::tidy::bugprone::SizeofContainerCheck::check(), clang::tidy::bugprone::SizeofExpressionCheck::check(), clang::tidy::bugprone::SmartPtrArrayMismatchCheck::check(), clang::tidy::bugprone::SpuriouslyWakeUpFunctionsCheck::check(), clang::tidy::bugprone::StandaloneEmptyCheck::check(), clang::tidy::bugprone::StringConstructorCheck::check(), clang::tidy::bugprone::StringIntegerAssignmentCheck::check(), clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck::check(), clang::tidy::bugprone::SuspiciousEnumUsageCheck::check(), clang::tidy::bugprone::SuspiciousMemoryComparisonCheck::check(), clang::tidy::bugprone::SuspiciousMemsetUsageCheck::check(), clang::tidy::bugprone::SuspiciousMissingCommaCheck::check(), clang::tidy::bugprone::SuspiciousReallocUsageCheck::check(), clang::tidy::bugprone::SuspiciousSemicolonCheck::check(), clang::tidy::bugprone::SuspiciousStringCompareCheck::check(), clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck::check(), clang::tidy::bugprone::SwappedArgumentsCheck::check(), clang::tidy::bugprone::SwitchMissingDefaultCaseCheck::check(), clang::tidy::bugprone::TaggedUnionMemberCountCheck::check(), clang::tidy::bugprone::TerminatingContinueCheck::check(), clang::tidy::bugprone::ThrowKeywordMissingCheck::check(), clang::tidy::bugprone::TooSmallLoopVariableCheck::check(), clang::tidy::bugprone::UncheckedOptionalAccessCheck::check(), clang::tidy::bugprone::UndefinedMemoryManipulationCheck::check(), clang::tidy::bugprone::UndelegatedConstructorCheck::check(), clang::tidy::bugprone::UnhandledExceptionAtNewCheck::check(), clang::tidy::bugprone::UnhandledSelfAssignmentCheck::check(), clang::tidy::bugprone::UnsafeFunctionsCheck::check(), clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck::check(), clang::tidy::bugprone::UnusedRaiiCheck::check(), clang::tidy::bugprone::VirtualNearMissCheck::check(), clang::tidy::cert::CommandProcessorCheck::check(), clang::tidy::cert::DefaultOperatorNewAlignmentCheck::check(), clang::tidy::cert::FloatLoopCounter::check(), clang::tidy::cert::LimitedRandomnessCheck::check(), clang::tidy::cert::MutatingCopyCheck::check(), clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::check(), clang::tidy::cert::SetLongJmpCheck::check(), clang::tidy::cert::StaticObjectExceptionCheck::check(), clang::tidy::cert::StrToNumCheck::check(), clang::tidy::cert::ThrownExceptionTypeCheck::check(), clang::tidy::cert::VariadicFunctionDefCheck::check(), clang::tidy::concurrency::MtUnsafeCheck::check(), clang::tidy::concurrency::ThreadCanceltypeAsynchronousCheck::check(), clang::tidy::cppcoreguidelines::AvoidCapturingLambdaCoroutinesCheck::check(), clang::tidy::cppcoreguidelines::AvoidConstOrRefDataMembersCheck::check(), clang::tidy::cppcoreguidelines::AvoidDoWhileCheck::check(), clang::tidy::cppcoreguidelines::AvoidGotoCheck::check(), clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck::check(), clang::tidy::cppcoreguidelines::AvoidReferenceCoroutineParametersCheck::check(), clang::tidy::cppcoreguidelines::InitVariablesCheck::check(), clang::tidy::cppcoreguidelines::InterfacesGlobalInitCheck::check(), clang::tidy::cppcoreguidelines::MisleadingCaptureDefaultByValueCheck::check(), clang::tidy::cppcoreguidelines::MissingStdForwardCheck::check(), clang::tidy::cppcoreguidelines::NoMallocCheck::check(), clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::check(), clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck::check(), clang::tidy::cppcoreguidelines::ProBoundsArrayToPointerDecayCheck::check(), clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck::check(), clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck::check(), clang::tidy::cppcoreguidelines::ProTypeConstCastCheck::check(), clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck::check(), clang::tidy::cppcoreguidelines::ProTypeReinterpretCastCheck::check(), clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck::check(), clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck::check(), clang::tidy::cppcoreguidelines::ProTypeVarargCheck::check(), clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck::check(), clang::tidy::cppcoreguidelines::SlicingCheck::check(), clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::check(), clang::tidy::darwin::AvoidSpinlockCheck::check(), clang::tidy::darwin::DispatchOnceNonstaticCheck::check(), clang::tidy::fuchsia::DefaultArgumentsCallsCheck::check(), clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck::check(), clang::tidy::fuchsia::MultipleInheritanceCheck::check(), clang::tidy::fuchsia::OverloadedOperatorCheck::check(), clang::tidy::fuchsia::StaticallyConstructedObjectsCheck::check(), clang::tidy::fuchsia::TrailingReturnCheck::check(), clang::tidy::fuchsia::VirtualInheritanceCheck::check(), clang::tidy::google::readability::AvoidCStyleCastsCheck::check(), clang::tidy::google::objc::AvoidNSObjectNewCheck::check(), clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck::check(), clang::tidy::google::DefaultArgumentsCheck::check(), clang::tidy::google::ExplicitConstructorCheck::check(), clang::tidy::google::build::ExplicitMakePairCheck::check(), clang::tidy::google::objc::FunctionNamingCheck::check(), clang::tidy::google::readability::GlobalNamesInHeadersCheck::check(), clang::tidy::google::objc::GlobalVariableDeclarationCheck::check(), clang::tidy::google::runtime::IntegerTypesCheck::check(), clang::tidy::google::runtime::OverloadedUnaryAndCheck::check(), clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::check(), clang::tidy::google::UpgradeGoogletestCaseCheck::check(), clang::tidy::google::build::UsingNamespaceDirectiveCheck::check(), clang::tidy::hicpp::ExceptionBaseclassCheck::check(), clang::tidy::hicpp::MultiwayPathsCoveredCheck::check(), clang::tidy::hicpp::NoAssemblerCheck::check(), clang::tidy::hicpp::SignedBitwiseCheck::check(), clang::tidy::linuxkernel::MustCheckErrsCheck::check(), clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck::check(), clang::tidy::llvm_check::PreferRegisterOverUnsignedCheck::check(), clang::tidy::llvm_check::TwineLocalCheck::check(), clang::tidy::llvm_libc::CalleeNamespaceCheck::check(), clang::tidy::llvm_libc::ImplementationInNamespaceCheck::check(), clang::tidy::llvm_libc::InlineFunctionDeclCheck::check(), clang::tidy::misc::ConfusableIdentifierCheck::check(), clang::tidy::misc::ConstCorrectnessCheck::check(), clang::tidy::misc::CoroutineHostileRAIICheck::check(), clang::tidy::misc::DefinitionsInHeadersCheck::check(), clang::tidy::misc::MisleadingBidirectionalCheck::check(), clang::tidy::misc::MisleadingIdentifierCheck::check(), clang::tidy::misc::MisplacedConstCheck::check(), clang::tidy::misc::NonCopyableObjectsCheck::check(), clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck::check(), clang::tidy::misc::RedundantExpressionCheck::check(), clang::tidy::misc::StaticAssertCheck::check(), clang::tidy::misc::UnconventionalAssignOperatorCheck::check(), clang::tidy::misc::UniqueptrResetReleaseCheck::check(), clang::tidy::misc::UseAnonymousNamespaceCheck::check(), clang::tidy::misc::UseInternalLinkageCheck::check(), clang::tidy::modernize::AvoidBindCheck::check(), clang::tidy::modernize::AvoidCArraysCheck::check(), clang::tidy::modernize::DeprecatedHeadersCheck::check(), clang::tidy::modernize::DeprecatedIosBaseAliasesCheck::check(), clang::tidy::modernize::PassByValueCheck::check(), clang::tidy::modernize::ReplaceAutoPtrCheck::check(), clang::tidy::modernize::ReplaceRandomShuffleCheck::check(), clang::tidy::modernize::ReturnBracedInitListCheck::check(), clang::tidy::modernize::ShrinkToFitCheck::check(), clang::tidy::modernize::TypeTraitsCheck::check(), clang::tidy::modernize::UnaryStaticAssertCheck::check(), clang::tidy::modernize::UseBoolLiteralsCheck::check(), clang::tidy::modernize::UseConstraintsCheck::check(), clang::tidy::modernize::UseDesignatedInitializersCheck::check(), clang::tidy::modernize::UseEmplaceCheck::check(), clang::tidy::modernize::UseEqualsDefaultCheck::check(), clang::tidy::modernize::UseEqualsDeleteCheck::check(), clang::tidy::modernize::UseIntegerSignComparisonCheck::check(), clang::tidy::modernize::UseNodiscardCheck::check(), clang::tidy::modernize::UseNoexceptCheck::check(), clang::tidy::modernize::UseOverrideCheck::check(), clang::tidy::modernize::UseStartsEndsWithCheck::check(), clang::tidy::modernize::UseStdFormatCheck::check(), clang::tidy::modernize::UseStdNumbersCheck::check(), clang::tidy::modernize::UseStdPrintCheck::check(), clang::tidy::modernize::UseTrailingReturnTypeCheck::check(), clang::tidy::modernize::UseTransparentFunctorsCheck::check(), clang::tidy::modernize::UseUncaughtExceptionsCheck::check(), clang::tidy::modernize::UseUsingCheck::check(), clang::tidy::objc::AssertEquals::check(), clang::tidy::objc::AvoidNSErrorInitCheck::check(), clang::tidy::objc::DeallocInCategoryCheck::check(), clang::tidy::objc::ForbiddenSubclassingCheck::check(), clang::tidy::objc::MissingHashCheck::check(), clang::tidy::objc::NSDateFormatterCheck::check(), clang::tidy::objc::NSInvocationArgumentLifetimeCheck::check(), clang::tidy::objc::PropertyDeclarationCheck::check(), clang::tidy::objc::SuperSelfCheck::check(), clang::tidy::openmp::UseDefaultNoneCheck::check(), clang::tidy::performance::AvoidEndlCheck::check(), clang::tidy::performance::EnumSizeCheck::check(), clang::tidy::performance::FasterStringFindCheck::check(), clang::tidy::performance::InefficientAlgorithmCheck::check(), clang::tidy::performance::InefficientStringConcatenationCheck::check(), clang::tidy::performance::InefficientVectorOperationCheck::check(), clang::tidy::performance::MoveConstArgCheck::check(), clang::tidy::performance::MoveConstructorInitCheck::check(), clang::tidy::performance::NoAutomaticMoveCheck::check(), clang::tidy::performance::NoIntToPtrCheck::check(), clang::tidy::performance::TriviallyDestructibleCheck::check(), clang::tidy::performance::TypePromotionInMathFnCheck::check(), clang::tidy::portability::SIMDIntrinsicsCheck::check(), clang::tidy::portability::StdAllocatorConstCheck::check(), clang::tidy::portability::TemplateVirtualMemberFunctionCheck::check(), clang::tidy::readability::AvoidConstParamsInDecls::check(), clang::tidy::readability::AvoidNestedConditionalOperatorCheck::check(), clang::tidy::readability::AvoidReturnWithVoidValueCheck::check(), clang::tidy::readability::ConstReturnTypeCheck::check(), clang::tidy::readability::ContainerDataPointerCheck::check(), clang::tidy::readability::ContainerSizeEmptyCheck::check(), clang::tidy::readability::ConvertMemberFunctionsToStatic::check(), clang::tidy::readability::DeleteNullPointerCheck::check(), clang::tidy::readability::ElseAfterReturnCheck::check(), clang::tidy::readability::EnumInitialValueCheck::check(), clang::tidy::readability::FunctionCognitiveComplexityCheck::check(), clang::tidy::readability::FunctionSizeCheck::check(), clang::tidy::readability::IdentifierLengthCheck::check(), clang::tidy::readability::IsolateDeclarationCheck::check(), clang::tidy::readability::MakeMemberFunctionConstCheck::check(), clang::tidy::readability::MisplacedArrayIndexCheck::check(), clang::tidy::readability::NamedParameterCheck::check(), clang::tidy::readability::NamespaceCommentCheck::check(), clang::tidy::readability::OperatorsRepresentationCheck::check(), clang::tidy::readability::QualifiedAutoCheck::check(), clang::tidy::readability::RedundantAccessSpecifiersCheck::check(), clang::tidy::readability::RedundantCastingCheck::check(), clang::tidy::readability::RedundantDeclarationCheck::check(), clang::tidy::readability::RedundantFunctionPtrDereferenceCheck::check(), clang::tidy::readability::RedundantMemberInitCheck::check(), clang::tidy::readability::RedundantSmartptrGetCheck::check(), clang::tidy::readability::RedundantStringCStrCheck::check(), clang::tidy::readability::RedundantStringInitCheck::check(), clang::tidy::readability::ReferenceToConstructedTemporaryCheck::check(), clang::tidy::readability::SimplifySubscriptExprCheck::check(), clang::tidy::readability::StaticAccessedThroughInstanceCheck::check(), clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck::check(), clang::tidy::readability::StringCompareCheck::check(), clang::tidy::readability::SuspiciousCallArgumentCheck::check(), clang::tidy::readability::UniqueptrDeleteReleaseCheck::check(), clang::tidy::readability::UseAnyOfAllOfCheck::check(), clang::tidy::readability::UseStdMinMaxCheck::check(), clang::tidy::zircon::TemporaryObjectsCheck::check(), clang::tidy::readability::UppercaseLiteralSuffixCheck::checkBoundMatch(), clang::tidy::cert::ProperlySeededRandomGeneratorCheck::checkSeed(), clang::tidy::utils::UseRangesCheck::createDiag(), clang::tidy::boost::UseRangesCheck::createDiag(), clang::tidy::performance::UnnecessaryCopyInitialization::diagnoseCopyFromLocalVar(), clang::tidy::performance::UnnecessaryCopyInitialization::diagnoseCopyFromMethodReturn(), clang::tidy::bugprone::emitDiagnostic(), clang::tidy::portability::RestrictedIncludesPPCallbacks::EndOfMainFile(), clang::tidy::google::readability::TodoCommentCheck::TodoCommentHandler::HandleComment(), clang::tidy::misc::MisleadingBidirectionalCheck::MisleadingBidirectionalHandler::HandleComment(), clang::tidy::performance::UnnecessaryValueParamCheck::handleConstRefFix(), clang::tidy::readability::RedundantInlineSpecifierCheck::handleMatchedDecl(), clang::tidy::performance::UnnecessaryValueParamCheck::handleMoveFix(), clang::tidy::android::CloexecCheck::insertMacroFlag(), clang::tidy::android::CloexecCheck::insertStringFlag(), clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), clang::tidy::bugprone::ForwardDeclarationNamespaceCheck::onEndOfTranslationUnit(), clang::tidy::misc::NewDeleteOverloadsCheck::onEndOfTranslationUnit(), clang::tidy::misc::UnusedAliasDeclsCheck::onEndOfTranslationUnit(), clang::tidy::misc::UnusedUsingDeclsCheck::onEndOfTranslationUnit(), clang::tidy::android::CloexecCheck::replaceFunc(), clang::tidy::bugprone::AssignmentInIfConditionCheck::report(), clang::tidy::cppcoreguidelines::MacroUsageCheck::warnMacro(), and clang::tidy::cppcoreguidelines::MacroUsageCheck::warnNaming().
DiagnosticBuilder clang::tidy::ClangTidyCheck::diag | ( | StringRef | Description, |
DiagnosticIDs::Level | Level = DiagnosticIDs::Warning |
||
) |
Add a diagnostic with the check's name.
Definition at line 31 of file ClangTidyCheck.cpp.
References clang::tidy::ClangTidyContext::diag().
|
inlineprotected |
Returns the main file name of the current translation unit.
Definition at line 492 of file ClangTidyCheck.h.
Referenced by clang::tidy::google::readability::AvoidCStyleCastsCheck::check().
|
inlineoverrideprotected |
Definition at line 500 of file ClangTidyCheck.h.
|
inlineprotected |
Returns the language options from the context.
Definition at line 494 of file ClangTidyCheck.h.
Referenced by clang::tidy::RenamerClangTidyCheck::addUsage(), clang::tidy::bugprone::AssertSideEffectCheck::check(), clang::tidy::bugprone::BranchCloneCheck::check(), clang::tidy::bugprone::InaccurateEraseCheck::check(), clang::tidy::bugprone::IncorrectEnableIfCheck::check(), clang::tidy::bugprone::MisplacedOperatorInStrlenInAllocCheck::check(), clang::tidy::bugprone::MisplacedPointerArithmeticInAllocCheck::check(), clang::tidy::bugprone::MultipleNewInOneExpressionCheck::check(), clang::tidy::bugprone::OptionalValueConversionCheck::check(), clang::tidy::bugprone::RedundantBranchConditionCheck::check(), clang::tidy::bugprone::StandaloneEmptyCheck::check(), clang::tidy::bugprone::StringIntegerAssignmentCheck::check(), clang::tidy::bugprone::SuspiciousReallocUsageCheck::check(), clang::tidy::bugprone::SuspiciousStringCompareCheck::check(), clang::tidy::bugprone::UnsafeFunctionsCheck::check(), clang::tidy::cert::LimitedRandomnessCheck::check(), clang::tidy::cert::StrToNumCheck::check(), clang::tidy::cppcoreguidelines::InitVariablesCheck::check(), clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck::check(), clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck::check(), clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck::check(), clang::tidy::google::readability::AvoidCStyleCastsCheck::check(), clang::tidy::google::ExplicitConstructorCheck::check(), clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck::check(), clang::tidy::llvm_check::TwineLocalCheck::check(), clang::tidy::misc::UnconventionalAssignOperatorCheck::check(), clang::tidy::misc::UnusedAliasDeclsCheck::check(), clang::tidy::misc::UnusedUsingDeclsCheck::check(), clang::tidy::misc::UseInternalLinkageCheck::check(), clang::tidy::modernize::PassByValueCheck::check(), clang::tidy::modernize::RawStringLiteralCheck::check(), clang::tidy::modernize::ReplaceRandomShuffleCheck::check(), clang::tidy::modernize::ShrinkToFitCheck::check(), clang::tidy::modernize::UseEqualsDeleteCheck::check(), clang::tidy::modernize::UseIntegerSignComparisonCheck::check(), clang::tidy::modernize::UseOverrideCheck::check(), clang::tidy::modernize::UseStdFormatCheck::check(), clang::tidy::modernize::UseStdPrintCheck::check(), clang::tidy::modernize::UseTrailingReturnTypeCheck::check(), clang::tidy::modernize::UseUncaughtExceptionsCheck::check(), clang::tidy::modernize::UseUsingCheck::check(), clang::tidy::mpi::TypeMismatchCheck::check(), clang::tidy::performance::InefficientAlgorithmCheck::check(), clang::tidy::performance::MoveConstArgCheck::check(), clang::tidy::performance::TriviallyDestructibleCheck::check(), clang::tidy::performance::TypePromotionInMathFnCheck::check(), clang::tidy::readability::AvoidReturnWithVoidValueCheck::check(), clang::tidy::readability::ContainerDataPointerCheck::check(), clang::tidy::readability::ContainerSizeEmptyCheck::check(), clang::tidy::readability::EnumInitialValueCheck::check(), clang::tidy::readability::IsolateDeclarationCheck::check(), clang::tidy::readability::NamespaceCommentCheck::check(), clang::tidy::readability::RedundantMemberInitCheck::check(), clang::tidy::readability::RedundantSmartptrGetCheck::check(), clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck::check(), clang::tidy::readability::UseAnyOfAllOfCheck::check(), clang::tidy::readability::UppercaseLiteralSuffixCheck::checkBoundMatch(), clang::tidy::boost::UseRangesCheck::getReplacerMap(), clang::tidy::modernize::UseRangesCheck::getReplacerMap(), clang::tidy::cert::StaticObjectExceptionCheck::isLanguageVersionSupported(), clang::tidy::modernize::LoopConvertCheck::LoopConvertCheck(), clang::tidy::readability::RedundantStringCStrCheck::RedundantStringCStrCheck(), clang::tidy::bugprone::BitwisePointerCastCheck::registerMatchers(), clang::tidy::bugprone::SpuriouslyWakeUpFunctionsCheck::registerMatchers(), clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck::registerMatchers(), clang::tidy::bugprone::UnsafeFunctionsCheck::registerMatchers(), clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck::registerMatchers(), clang::tidy::google::runtime::IntegerTypesCheck::registerMatchers(), clang::tidy::modernize::TypeTraitsCheck::registerMatchers(), clang::tidy::modernize::UseDefaultMemberInitCheck::registerMatchers(), clang::tidy::modernize::UseEqualsDefaultCheck::registerMatchers(), clang::tidy::portability::SIMDIntrinsicsCheck::registerMatchers(), clang::tidy::readability::RedundantInlineSpecifierCheck::registerMatchers(), clang::tidy::modernize::DeprecatedHeadersCheck::registerPPCallbacks(), clang::tidy::modernize::MacroToEnumCheck::registerPPCallbacks(), and clang::tidy::modernize::ConcatNestedNamespacesCheck::unsupportedNamespace().
|
inlinevirtual |
Override this to disable registering matchers and PP callbacks if an invalid language version is being used.
For example if a check is examining overloaded functions then this should be overridden to return false when the CPlusPlus flag is not set in LangOpts
.
Reimplemented in clang::tidy::abseil::CleanupCtadCheck, clang::tidy::abseil::DurationDivisionCheck, clang::tidy::abseil::FasterStrsplitDelimiterCheck, clang::tidy::abseil::NoInternalDependenciesCheck, clang::tidy::abseil::NoNamespaceCheck, clang::tidy::abseil::RedundantStrcatCallsCheck, clang::tidy::abseil::StrCatAppendCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::abseil::StringFindStrContainsCheck, clang::tidy::abseil::UpgradeDurationConversionsCheck, clang::tidy::boost::UseToStringCheck, clang::tidy::bugprone::BitwisePointerCastCheck, clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck, clang::tidy::bugprone::CopyConstructorInitCheck, clang::tidy::bugprone::CrtpConstructorAccessibilityCheck, clang::tidy::bugprone::DynamicStaticInitializersCheck, clang::tidy::bugprone::EmptyCatchCheck, clang::tidy::bugprone::ExceptionEscapeCheck, clang::tidy::bugprone::ForwardingReferenceOverloadCheck, clang::tidy::bugprone::InaccurateEraseCheck, clang::tidy::bugprone::IncorrectEnableIfCheck, clang::tidy::bugprone::MoveForwardingReferenceCheck, clang::tidy::bugprone::MultipleNewInOneExpressionCheck, clang::tidy::bugprone::NoEscapeCheck, clang::tidy::bugprone::NondeterministicPointerIterationOrderCheck, clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck, clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck, clang::tidy::bugprone::ReturnConstRefFromParameterCheck, clang::tidy::bugprone::SignalHandlerCheck, clang::tidy::bugprone::SmartPtrArrayMismatchCheck, clang::tidy::bugprone::StandaloneEmptyCheck, clang::tidy::bugprone::StringConstructorCheck, clang::tidy::bugprone::StringIntegerAssignmentCheck, clang::tidy::bugprone::StringviewNullptrCheck, clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck, clang::tidy::bugprone::ThrowKeywordMissingCheck, clang::tidy::bugprone::UncheckedOptionalAccessCheck, clang::tidy::bugprone::UndelegatedConstructorCheck, clang::tidy::bugprone::UnhandledExceptionAtNewCheck, clang::tidy::bugprone::UnhandledSelfAssignmentCheck, clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck, clang::tidy::bugprone::UnusedRaiiCheck, clang::tidy::bugprone::UseAfterMoveCheck, clang::tidy::bugprone::VirtualNearMissCheck, clang::tidy::cert::DefaultOperatorNewAlignmentCheck, clang::tidy::cert::DontModifyStdNamespaceCheck, clang::tidy::cert::MutatingCopyCheck, clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck, clang::tidy::cert::SetLongJmpCheck, clang::tidy::cert::StaticObjectExceptionCheck, clang::tidy::cert::ThrownExceptionTypeCheck, clang::tidy::cert::VariadicFunctionDefCheck, clang::tidy::cppcoreguidelines::AvoidCapturingLambdaCoroutinesCheck, clang::tidy::cppcoreguidelines::AvoidConstOrRefDataMembersCheck, clang::tidy::cppcoreguidelines::AvoidDoWhileCheck, clang::tidy::cppcoreguidelines::AvoidGotoCheck, clang::tidy::cppcoreguidelines::AvoidReferenceCoroutineParametersCheck, clang::tidy::cppcoreguidelines::MacroUsageCheck, clang::tidy::cppcoreguidelines::MisleadingCaptureDefaultByValueCheck, clang::tidy::cppcoreguidelines::MissingStdForwardCheck, clang::tidy::cppcoreguidelines::NoMallocCheck, clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck, clang::tidy::cppcoreguidelines::OwningMemoryCheck, clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck, clang::tidy::cppcoreguidelines::ProBoundsArrayToPointerDecayCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProTypeConstCastCheck, clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck, clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck, clang::tidy::cppcoreguidelines::ProTypeReinterpretCastCheck, clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck, clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck, clang::tidy::cppcoreguidelines::ProTypeVarargCheck, clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck, clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck, clang::tidy::fuchsia::MultipleInheritanceCheck, clang::tidy::fuchsia::StaticallyConstructedObjectsCheck, clang::tidy::fuchsia::TrailingReturnCheck, clang::tidy::google::objc::AvoidNSObjectNewCheck, clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck, clang::tidy::google::ExplicitConstructorCheck, clang::tidy::google::build::ExplicitMakePairCheck, clang::tidy::google::objc::FunctionNamingCheck, clang::tidy::google::objc::GlobalVariableDeclarationCheck, clang::tidy::google::runtime::IntegerTypesCheck, clang::tidy::google::runtime::OverloadedUnaryAndCheck, clang::tidy::google::build::UnnamedNamespaceInHeaderCheck, clang::tidy::google::UpgradeGoogletestCaseCheck, clang::tidy::google::build::UsingNamespaceDirectiveCheck, clang::tidy::hicpp::ExceptionBaseclassCheck, clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck, clang::tidy::llvm_libc::CalleeNamespaceCheck, clang::tidy::llvm_libc::ImplementationInNamespaceCheck, clang::tidy::llvm_libc::InlineFunctionDeclCheck, clang::tidy::misc::ConstCorrectnessCheck, clang::tidy::misc::CoroutineHostileRAIICheck, clang::tidy::misc::DefinitionsInHeadersCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::NewDeleteOverloadsCheck, clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck, clang::tidy::misc::StaticAssertCheck, clang::tidy::misc::ThrowByValueCatchByReferenceCheck, clang::tidy::misc::UnconventionalAssignOperatorCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::misc::UnusedAliasDeclsCheck, clang::tidy::misc::UnusedUsingDeclsCheck, clang::tidy::misc::UseAnonymousNamespaceCheck, clang::tidy::modernize::AvoidBindCheck, clang::tidy::modernize::AvoidCArraysCheck, clang::tidy::modernize::ConcatNestedNamespacesCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::DeprecatedIosBaseAliasesCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::modernize::MakeUniqueCheck, clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::RawStringLiteralCheck, clang::tidy::modernize::RedundantVoidArgCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::ReturnBracedInitListCheck, clang::tidy::modernize::ShrinkToFitCheck, clang::tidy::modernize::TypeTraitsCheck, clang::tidy::modernize::UnaryStaticAssertCheck, clang::tidy::modernize::UseAutoCheck, clang::tidy::modernize::UseBoolLiteralsCheck, clang::tidy::modernize::UseConstraintsCheck, clang::tidy::modernize::UseDefaultMemberInitCheck, clang::tidy::modernize::UseDesignatedInitializersCheck, clang::tidy::modernize::UseEmplaceCheck, clang::tidy::modernize::UseEqualsDefaultCheck, clang::tidy::modernize::UseEqualsDeleteCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseNodiscardCheck, clang::tidy::modernize::UseNoexceptCheck, clang::tidy::modernize::UseNullptrCheck, clang::tidy::modernize::UseOverrideCheck, clang::tidy::modernize::UseRangesCheck, clang::tidy::modernize::UseStartsEndsWithCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTrailingReturnTypeCheck, clang::tidy::modernize::UseTransparentFunctorsCheck, clang::tidy::modernize::UseUncaughtExceptionsCheck, clang::tidy::modernize::UseUsingCheck, clang::tidy::objc::AssertEquals, clang::tidy::objc::AvoidNSErrorInitCheck, clang::tidy::objc::DeallocInCategoryCheck, clang::tidy::objc::ForbiddenSubclassingCheck, clang::tidy::objc::MissingHashCheck, clang::tidy::objc::NSDateFormatterCheck, clang::tidy::objc::NSInvocationArgumentLifetimeCheck, clang::tidy::objc::PropertyDeclarationCheck, clang::tidy::objc::SuperSelfCheck, clang::tidy::openmp::ExceptionEscapeCheck, clang::tidy::openmp::UseDefaultNoneCheck, clang::tidy::performance::AvoidEndlCheck, clang::tidy::performance::EnumSizeCheck, clang::tidy::performance::FasterStringFindCheck, clang::tidy::performance::ForRangeCopyCheck, clang::tidy::performance::ImplicitConversionInLoopCheck, clang::tidy::performance::InefficientAlgorithmCheck, clang::tidy::performance::InefficientStringConcatenationCheck, clang::tidy::performance::InefficientVectorOperationCheck, clang::tidy::performance::MoveConstArgCheck, clang::tidy::performance::MoveConstructorInitCheck, clang::tidy::performance::NoAutomaticMoveCheck, clang::tidy::performance::NoexceptFunctionBaseCheck, clang::tidy::performance::TriviallyDestructibleCheck, clang::tidy::performance::UnnecessaryCopyInitialization, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::SIMDIntrinsicsCheck, clang::tidy::portability::TemplateVirtualMemberFunctionCheck, clang::tidy::readability::ContainerSizeEmptyCheck, clang::tidy::readability::ImplicitBoolConversionCheck, clang::tidy::readability::MakeMemberFunctionConstCheck, clang::tidy::readability::NamespaceCommentCheck, clang::tidy::readability::OperatorsRepresentationCheck, clang::tidy::readability::QualifiedAutoCheck, clang::tidy::readability::RedundantAccessSpecifiersCheck, clang::tidy::readability::RedundantMemberInitCheck, clang::tidy::readability::RedundantSmartptrGetCheck, clang::tidy::readability::RedundantStringCStrCheck, clang::tidy::readability::RedundantStringInitCheck, clang::tidy::readability::ReferenceToConstructedTemporaryCheck, clang::tidy::readability::SimplifySubscriptExprCheck, clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck, clang::tidy::readability::StringCompareCheck, clang::tidy::readability::UseAnyOfAllOfCheck, clang::tidy::readability::UseStdMinMaxCheck, clang::tidy::utils::UseRangesCheck, clang::tidy::readability::ContainerContainsCheck, and clang::tidy::readability::ContainerDataPointerCheck.
Definition at line 68 of file ClangTidyCheck.h.
|
inlinevirtual |
Override this to register AST matchers with Finder
.
This should be used by clang-tidy checks that analyze code properties that dependent on AST knowledge.
You can register as many matchers as necessary with Finder
. Usually, "this" will be used as callback, but you can also specify other callback classes. Thereby, different matchers can trigger different callbacks.
This will only be executed if the function isLanguageVersionSupported returns true.
If you need to merge information between the different matchers, you can store these as members of the derived class. However, note that all matches occur in the order of the AST traversal.
Reimplemented in clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::readability::ContainerContainsCheck, clang::tidy::RenamerClangTidyCheck, clang::tidy::utils::TransformerClangTidyCheck, clang::tidy::utils::UseRangesCheck, clang::tidy::abseil::DurationAdditionCheck, clang::tidy::abseil::DurationComparisonCheck, clang::tidy::abseil::DurationConversionCastCheck, clang::tidy::abseil::DurationDivisionCheck, clang::tidy::abseil::DurationFactoryFloatCheck, clang::tidy::abseil::DurationFactoryScaleCheck, clang::tidy::abseil::DurationSubtractionCheck, clang::tidy::abseil::DurationUnnecessaryConversionCheck, clang::tidy::abseil::FasterStrsplitDelimiterCheck, clang::tidy::abseil::NoInternalDependenciesCheck, clang::tidy::abseil::NoNamespaceCheck, clang::tidy::abseil::RedundantStrcatCallsCheck, clang::tidy::abseil::StrCatAppendCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::abseil::TimeComparisonCheck, clang::tidy::abseil::TimeSubtractionCheck, clang::tidy::abseil::UpgradeDurationConversionsCheck, clang::tidy::altera::IdDependentBackwardBranchCheck, clang::tidy::altera::SingleWorkItemBarrierCheck, clang::tidy::altera::StructPackAlignCheck, clang::tidy::altera::UnrollLoopsCheck, clang::tidy::android::CloexecAccept4Check, clang::tidy::android::CloexecAcceptCheck, clang::tidy::android::CloexecCreatCheck, clang::tidy::android::CloexecDupCheck, clang::tidy::android::CloexecEpollCreate1Check, clang::tidy::android::CloexecEpollCreateCheck, clang::tidy::android::CloexecFopenCheck, clang::tidy::android::CloexecInotifyInit1Check, clang::tidy::android::CloexecInotifyInitCheck, clang::tidy::android::CloexecMemfdCreateCheck, clang::tidy::android::CloexecOpenCheck, clang::tidy::android::CloexecPipe2Check, clang::tidy::android::CloexecPipeCheck, clang::tidy::android::CloexecSocketCheck, clang::tidy::android::ComparisonInTempFailureRetryCheck, clang::tidy::boost::UseToStringCheck, clang::tidy::bugprone::ArgumentCommentCheck, clang::tidy::bugprone::AssertSideEffectCheck, clang::tidy::bugprone::AssignmentInIfConditionCheck, clang::tidy::bugprone::BadSignalToKillThreadCheck, clang::tidy::bugprone::BitwisePointerCastCheck, clang::tidy::bugprone::BoolPointerImplicitConversionCheck, clang::tidy::bugprone::BranchCloneCheck, clang::tidy::bugprone::CastingThroughVoidCheck, clang::tidy::bugprone::ChainedComparisonCheck, clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck, clang::tidy::bugprone::CopyConstructorInitCheck, clang::tidy::bugprone::CrtpConstructorAccessibilityCheck, clang::tidy::bugprone::DanglingHandleCheck, clang::tidy::bugprone::DynamicStaticInitializersCheck, clang::tidy::bugprone::EasilySwappableParametersCheck, clang::tidy::bugprone::EmptyCatchCheck, clang::tidy::bugprone::ExceptionEscapeCheck, clang::tidy::bugprone::FoldInitTypeCheck, clang::tidy::bugprone::ForwardDeclarationNamespaceCheck, clang::tidy::bugprone::ForwardingReferenceOverloadCheck, clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck, clang::tidy::bugprone::InaccurateEraseCheck, clang::tidy::bugprone::IncDecInConditionsCheck, clang::tidy::bugprone::IncorrectEnableIfCheck, clang::tidy::bugprone::IncorrectRoundingsCheck, clang::tidy::bugprone::InfiniteLoopCheck, clang::tidy::bugprone::IntegerDivisionCheck, clang::tidy::bugprone::LambdaFunctionNameCheck, clang::tidy::bugprone::MisplacedOperatorInStrlenInAllocCheck, clang::tidy::bugprone::MisplacedPointerArithmeticInAllocCheck, clang::tidy::bugprone::MisplacedWideningCastCheck, clang::tidy::bugprone::MoveForwardingReferenceCheck, clang::tidy::bugprone::MultiLevelImplicitPointerConversionCheck, clang::tidy::bugprone::MultipleNewInOneExpressionCheck, clang::tidy::bugprone::MultipleStatementMacroCheck, clang::tidy::bugprone::NoEscapeCheck, clang::tidy::bugprone::NondeterministicPointerIterationOrderCheck, clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck, clang::tidy::bugprone::NotNullTerminatedResultCheck, clang::tidy::bugprone::OptionalValueConversionCheck, clang::tidy::bugprone::ParentVirtualCallCheck, clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck, clang::tidy::bugprone::PosixReturnCheck, clang::tidy::bugprone::RedundantBranchConditionCheck, clang::tidy::bugprone::ReturnConstRefFromParameterCheck, clang::tidy::bugprone::SignalHandlerCheck, clang::tidy::bugprone::SignedCharMisuseCheck, clang::tidy::bugprone::SizeofContainerCheck, clang::tidy::bugprone::SizeofExpressionCheck, clang::tidy::bugprone::SmartPtrArrayMismatchCheck, clang::tidy::bugprone::SpuriouslyWakeUpFunctionsCheck, clang::tidy::bugprone::StandaloneEmptyCheck, clang::tidy::bugprone::StringConstructorCheck, clang::tidy::bugprone::StringIntegerAssignmentCheck, clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck, clang::tidy::bugprone::SuspiciousEnumUsageCheck, clang::tidy::bugprone::SuspiciousMemoryComparisonCheck, clang::tidy::bugprone::SuspiciousMemsetUsageCheck, clang::tidy::bugprone::SuspiciousMissingCommaCheck, clang::tidy::bugprone::SuspiciousReallocUsageCheck, clang::tidy::bugprone::SuspiciousSemicolonCheck, clang::tidy::bugprone::SuspiciousStringCompareCheck, clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck, clang::tidy::bugprone::SwappedArgumentsCheck, clang::tidy::bugprone::SwitchMissingDefaultCaseCheck, clang::tidy::bugprone::TaggedUnionMemberCountCheck, clang::tidy::bugprone::TerminatingContinueCheck, clang::tidy::bugprone::ThrowKeywordMissingCheck, clang::tidy::bugprone::TooSmallLoopVariableCheck, clang::tidy::bugprone::UncheckedOptionalAccessCheck, clang::tidy::bugprone::UndefinedMemoryManipulationCheck, clang::tidy::bugprone::UndelegatedConstructorCheck, clang::tidy::bugprone::UnhandledExceptionAtNewCheck, clang::tidy::bugprone::UnhandledSelfAssignmentCheck, clang::tidy::bugprone::UnsafeFunctionsCheck, clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck, clang::tidy::bugprone::UnusedRaiiCheck, clang::tidy::bugprone::UnusedReturnValueCheck, clang::tidy::bugprone::UseAfterMoveCheck, clang::tidy::bugprone::VirtualNearMissCheck, clang::tidy::cert::CommandProcessorCheck, clang::tidy::cert::DefaultOperatorNewAlignmentCheck, clang::tidy::cert::DontModifyStdNamespaceCheck, clang::tidy::cert::FloatLoopCounter, clang::tidy::cert::LimitedRandomnessCheck, clang::tidy::cert::MutatingCopyCheck, clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck, clang::tidy::cert::ProperlySeededRandomGeneratorCheck, clang::tidy::cert::SetLongJmpCheck, clang::tidy::cert::StaticObjectExceptionCheck, clang::tidy::cert::StrToNumCheck, clang::tidy::cert::ThrownExceptionTypeCheck, clang::tidy::cert::VariadicFunctionDefCheck, clang::tidy::concurrency::MtUnsafeCheck, clang::tidy::concurrency::ThreadCanceltypeAsynchronousCheck, clang::tidy::cppcoreguidelines::AvoidCapturingLambdaCoroutinesCheck, clang::tidy::cppcoreguidelines::AvoidConstOrRefDataMembersCheck, clang::tidy::cppcoreguidelines::AvoidDoWhileCheck, clang::tidy::cppcoreguidelines::AvoidGotoCheck, clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck, clang::tidy::cppcoreguidelines::AvoidReferenceCoroutineParametersCheck, clang::tidy::cppcoreguidelines::InitVariablesCheck, clang::tidy::cppcoreguidelines::InterfacesGlobalInitCheck, clang::tidy::cppcoreguidelines::MisleadingCaptureDefaultByValueCheck, clang::tidy::cppcoreguidelines::MissingStdForwardCheck, clang::tidy::cppcoreguidelines::NarrowingConversionsCheck, clang::tidy::cppcoreguidelines::NoMallocCheck, clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck, clang::tidy::cppcoreguidelines::OwningMemoryCheck, clang::tidy::cppcoreguidelines::PreferMemberInitializerCheck, clang::tidy::cppcoreguidelines::ProBoundsArrayToPointerDecayCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProBoundsPointerArithmeticCheck, clang::tidy::cppcoreguidelines::ProTypeConstCastCheck, clang::tidy::cppcoreguidelines::ProTypeCstyleCastCheck, clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck, clang::tidy::cppcoreguidelines::ProTypeReinterpretCastCheck, clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck, clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck, clang::tidy::cppcoreguidelines::ProTypeVarargCheck, clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck, clang::tidy::cppcoreguidelines::SlicingCheck, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck, clang::tidy::cppcoreguidelines::VirtualClassDestructorCheck, clang::tidy::darwin::AvoidSpinlockCheck, clang::tidy::darwin::DispatchOnceNonstaticCheck, clang::tidy::fuchsia::DefaultArgumentsCallsCheck, clang::tidy::fuchsia::DefaultArgumentsDeclarationsCheck, clang::tidy::fuchsia::MultipleInheritanceCheck, clang::tidy::fuchsia::OverloadedOperatorCheck, clang::tidy::fuchsia::StaticallyConstructedObjectsCheck, clang::tidy::fuchsia::TrailingReturnCheck, clang::tidy::fuchsia::VirtualInheritanceCheck, clang::tidy::google::readability::AvoidCStyleCastsCheck, clang::tidy::google::objc::AvoidNSObjectNewCheck, clang::tidy::google::objc::AvoidThrowingObjCExceptionCheck, clang::tidy::google::DefaultArgumentsCheck, clang::tidy::google::ExplicitConstructorCheck, clang::tidy::google::build::ExplicitMakePairCheck, clang::tidy::google::objc::FunctionNamingCheck, clang::tidy::google::readability::GlobalNamesInHeadersCheck, clang::tidy::google::objc::GlobalVariableDeclarationCheck, clang::tidy::google::runtime::IntegerTypesCheck, clang::tidy::google::runtime::OverloadedUnaryAndCheck, clang::tidy::google::build::UnnamedNamespaceInHeaderCheck, clang::tidy::google::UpgradeGoogletestCaseCheck, clang::tidy::google::build::UsingNamespaceDirectiveCheck, clang::tidy::hicpp::ExceptionBaseclassCheck, clang::tidy::hicpp::MultiwayPathsCoveredCheck, clang::tidy::hicpp::NoAssemblerCheck, clang::tidy::hicpp::SignedBitwiseCheck, clang::tidy::linuxkernel::MustCheckErrsCheck, clang::tidy::llvm_check::PreferIsaOrDynCastInConditionalsCheck, clang::tidy::llvm_check::PreferRegisterOverUnsignedCheck, clang::tidy::llvm_check::TwineLocalCheck, clang::tidy::llvm_libc::CalleeNamespaceCheck, clang::tidy::llvm_libc::ImplementationInNamespaceCheck, clang::tidy::llvm_libc::InlineFunctionDeclCheck, clang::tidy::misc::ConfusableIdentifierCheck, clang::tidy::misc::ConstCorrectnessCheck, clang::tidy::misc::CoroutineHostileRAIICheck, clang::tidy::misc::DefinitionsInHeadersCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::MisleadingBidirectionalCheck, clang::tidy::misc::MisleadingIdentifierCheck, clang::tidy::misc::MisplacedConstCheck, clang::tidy::misc::NewDeleteOverloadsCheck, clang::tidy::misc::NonCopyableObjectsCheck, clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck, clang::tidy::misc::NoRecursionCheck, clang::tidy::misc::RedundantExpressionCheck, clang::tidy::misc::StaticAssertCheck, clang::tidy::misc::ThrowByValueCatchByReferenceCheck, clang::tidy::misc::UnconventionalAssignOperatorCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::misc::UnusedAliasDeclsCheck, clang::tidy::misc::UnusedParametersCheck, clang::tidy::misc::UnusedUsingDeclsCheck, clang::tidy::misc::UseAnonymousNamespaceCheck, clang::tidy::misc::UseInternalLinkageCheck, clang::tidy::modernize::AvoidBindCheck, clang::tidy::modernize::AvoidCArraysCheck, clang::tidy::modernize::ConcatNestedNamespacesCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::DeprecatedIosBaseAliasesCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MacroToEnumCheck, clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::RawStringLiteralCheck, clang::tidy::modernize::RedundantVoidArgCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::ReturnBracedInitListCheck, clang::tidy::modernize::ShrinkToFitCheck, clang::tidy::modernize::TypeTraitsCheck, clang::tidy::modernize::UnaryStaticAssertCheck, clang::tidy::modernize::UseAutoCheck, clang::tidy::modernize::UseBoolLiteralsCheck, clang::tidy::modernize::UseConstraintsCheck, clang::tidy::modernize::UseDefaultMemberInitCheck, clang::tidy::modernize::UseDesignatedInitializersCheck, clang::tidy::modernize::UseEmplaceCheck, clang::tidy::modernize::UseEqualsDefaultCheck, clang::tidy::modernize::UseEqualsDeleteCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseNodiscardCheck, clang::tidy::modernize::UseNoexceptCheck, clang::tidy::modernize::UseNullptrCheck, clang::tidy::modernize::UseOverrideCheck, clang::tidy::modernize::UseStartsEndsWithCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTrailingReturnTypeCheck, clang::tidy::modernize::UseTransparentFunctorsCheck, clang::tidy::modernize::UseUncaughtExceptionsCheck, clang::tidy::modernize::UseUsingCheck, clang::tidy::mpi::BufferDerefCheck, clang::tidy::mpi::TypeMismatchCheck, clang::tidy::objc::AssertEquals, clang::tidy::objc::AvoidNSErrorInitCheck, clang::tidy::objc::DeallocInCategoryCheck, clang::tidy::objc::ForbiddenSubclassingCheck, clang::tidy::objc::MissingHashCheck, clang::tidy::objc::NSDateFormatterCheck, clang::tidy::objc::NSInvocationArgumentLifetimeCheck, clang::tidy::objc::PropertyDeclarationCheck, clang::tidy::objc::SuperSelfCheck, clang::tidy::openmp::ExceptionEscapeCheck, clang::tidy::openmp::UseDefaultNoneCheck, clang::tidy::performance::AvoidEndlCheck, clang::tidy::performance::EnumSizeCheck, clang::tidy::performance::FasterStringFindCheck, clang::tidy::performance::ForRangeCopyCheck, clang::tidy::performance::ImplicitConversionInLoopCheck, clang::tidy::performance::InefficientAlgorithmCheck, clang::tidy::performance::InefficientStringConcatenationCheck, clang::tidy::performance::InefficientVectorOperationCheck, clang::tidy::performance::MoveConstArgCheck, clang::tidy::performance::MoveConstructorInitCheck, clang::tidy::performance::NoAutomaticMoveCheck, clang::tidy::performance::NoexceptDestructorCheck, clang::tidy::performance::NoexceptMoveConstructorCheck, clang::tidy::performance::NoexceptSwapCheck, clang::tidy::performance::NoIntToPtrCheck, clang::tidy::performance::TriviallyDestructibleCheck, clang::tidy::performance::TypePromotionInMathFnCheck, clang::tidy::performance::UnnecessaryCopyInitialization, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::SIMDIntrinsicsCheck, clang::tidy::portability::StdAllocatorConstCheck, clang::tidy::portability::TemplateVirtualMemberFunctionCheck, clang::tidy::readability::AvoidConstParamsInDecls, clang::tidy::readability::AvoidNestedConditionalOperatorCheck, clang::tidy::readability::AvoidReturnWithVoidValueCheck, clang::tidy::readability::BracesAroundStatementsCheck, clang::tidy::readability::ConstReturnTypeCheck, clang::tidy::readability::ContainerDataPointerCheck, clang::tidy::readability::ContainerSizeEmptyCheck, clang::tidy::readability::ConvertMemberFunctionsToStatic, clang::tidy::readability::DeleteNullPointerCheck, clang::tidy::readability::ElseAfterReturnCheck, clang::tidy::readability::EnumInitialValueCheck, clang::tidy::readability::FunctionCognitiveComplexityCheck, clang::tidy::readability::FunctionSizeCheck, clang::tidy::readability::IdentifierLengthCheck, clang::tidy::readability::ImplicitBoolConversionCheck, clang::tidy::readability::InconsistentDeclarationParameterNameCheck, clang::tidy::readability::IsolateDeclarationCheck, clang::tidy::readability::MagicNumbersCheck, clang::tidy::readability::MakeMemberFunctionConstCheck, clang::tidy::readability::MathMissingParenthesesCheck, clang::tidy::readability::MisleadingIndentationCheck, clang::tidy::readability::MisplacedArrayIndexCheck, clang::tidy::readability::NamedParameterCheck, clang::tidy::readability::NamespaceCommentCheck, clang::tidy::readability::NonConstParameterCheck, clang::tidy::readability::OperatorsRepresentationCheck, clang::tidy::readability::QualifiedAutoCheck, clang::tidy::readability::RedundantAccessSpecifiersCheck, clang::tidy::readability::RedundantCastingCheck, clang::tidy::readability::RedundantControlFlowCheck, clang::tidy::readability::RedundantDeclarationCheck, clang::tidy::readability::RedundantFunctionPtrDereferenceCheck, clang::tidy::readability::RedundantInlineSpecifierCheck, clang::tidy::readability::RedundantMemberInitCheck, clang::tidy::readability::RedundantSmartptrGetCheck, clang::tidy::readability::RedundantStringCStrCheck, clang::tidy::readability::RedundantStringInitCheck, clang::tidy::readability::ReferenceToConstructedTemporaryCheck, clang::tidy::readability::SimplifyBooleanExprCheck, clang::tidy::readability::SimplifySubscriptExprCheck, clang::tidy::readability::StaticAccessedThroughInstanceCheck, clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck, clang::tidy::readability::StringCompareCheck, clang::tidy::readability::SuspiciousCallArgumentCheck, clang::tidy::readability::UniqueptrDeleteReleaseCheck, clang::tidy::readability::UppercaseLiteralSuffixCheck, clang::tidy::readability::UseAnyOfAllOfCheck, clang::tidy::readability::UseStdMinMaxCheck, and clang::tidy::zircon::TemporaryObjectsCheck.
Definition at line 108 of file ClangTidyCheck.h.
|
inlinevirtual |
Override this to register PPCallbacks
in the preprocessor.
This should be used for clang-tidy checks that analyze preprocessor- dependent properties, e.g. include directives and macro definitions.
This will only be executed if the function isLanguageVersionSupported returns true.
There are two Preprocessors to choose from that differ in how they handle modular #includes:
Reimplemented in clang::tidy::altera::KernelNameRestrictionCheck, clang::tidy::RenamerClangTidyCheck, clang::tidy::utils::UseRangesCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::bugprone::BadSignalToKillThreadCheck, clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck, clang::tidy::bugprone::LambdaFunctionNameCheck, clang::tidy::bugprone::MacroParenthesesCheck, clang::tidy::bugprone::MacroRepeatedSideEffectsCheck, clang::tidy::bugprone::NotNullTerminatedResultCheck, clang::tidy::bugprone::SuspiciousIncludeCheck, clang::tidy::bugprone::UnsafeFunctionsCheck, clang::tidy::cert::SetLongJmpCheck, clang::tidy::cppcoreguidelines::InitVariablesCheck, clang::tidy::cppcoreguidelines::MacroUsageCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProTypeVarargCheck, clang::tidy::google::readability::AvoidUnderscoreInGoogletestNameCheck, clang::tidy::google::readability::TodoCommentCheck, clang::tidy::google::UpgradeGoogletestCaseCheck, clang::tidy::llvm_check::IncludeOrderCheck, clang::tidy::llvm_libc::RestrictSystemLibcHeadersCheck, clang::tidy::misc::HeaderIncludeCycleCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::MisleadingBidirectionalCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MacroToEnumCheck, clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTrailingReturnTypeCheck, clang::tidy::performance::TypePromotionInMathFnCheck, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::RestrictSystemIncludesCheck, clang::tidy::readability::AvoidUnconditionalPreprocessorIfCheck, clang::tidy::readability::DuplicateIncludeCheck, clang::tidy::readability::ElseAfterReturnCheck, clang::tidy::readability::RedundantPreprocessorCheck, clang::tidy::readability::UseStdMinMaxCheck, clang::tidy::utils::HeaderGuardCheck, and clang::tidy::utils::TransformerClangTidyCheck.
Definition at line 90 of file ClangTidyCheck.h.
|
inlinevirtual |
Should store all options supported by this check with their current values or default values for options that haven't been overridden.
The check should use Options.store()
to store each option it supports whether it has the default value or it has been overridden.
Reimplemented in clang::tidy::boost::UseRangesCheck, clang::tidy::modernize::UseRangesCheck, clang::tidy::utils::UseRangesCheck, clang::tidy::abseil::StringFindStartswithCheck, clang::tidy::abseil::StringFindStrContainsCheck, clang::tidy::altera::SingleWorkItemBarrierCheck, clang::tidy::altera::StructPackAlignCheck, clang::tidy::android::ComparisonInTempFailureRetryCheck, clang::tidy::bugprone::ArgumentCommentCheck, clang::tidy::bugprone::AssertSideEffectCheck, clang::tidy::bugprone::DanglingHandleCheck, clang::tidy::bugprone::EasilySwappableParametersCheck, clang::tidy::bugprone::EmptyCatchCheck, clang::tidy::bugprone::ExceptionEscapeCheck, clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck, clang::tidy::bugprone::LambdaFunctionNameCheck, clang::tidy::bugprone::MisplacedWideningCastCheck, clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck, clang::tidy::bugprone::NotNullTerminatedResultCheck, clang::tidy::bugprone::OptionalValueConversionCheck, clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck, clang::tidy::bugprone::ReservedIdentifierCheck, clang::tidy::bugprone::SignalHandlerCheck, clang::tidy::bugprone::SignedCharMisuseCheck, clang::tidy::bugprone::SizeofExpressionCheck, clang::tidy::bugprone::SmartPtrArrayMismatchCheck, clang::tidy::bugprone::StringConstructorCheck, clang::tidy::bugprone::SuspiciousEnumUsageCheck, clang::tidy::bugprone::SuspiciousMissingCommaCheck, clang::tidy::bugprone::SuspiciousStringCompareCheck, clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck, clang::tidy::bugprone::TaggedUnionMemberCountCheck, clang::tidy::bugprone::TooSmallLoopVariableCheck, clang::tidy::bugprone::UncheckedOptionalAccessCheck, clang::tidy::bugprone::UnhandledSelfAssignmentCheck, clang::tidy::bugprone::UnsafeFunctionsCheck, clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck, clang::tidy::bugprone::UnusedReturnValueCheck, clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck, clang::tidy::cert::ProperlySeededRandomGeneratorCheck, clang::tidy::concurrency::MtUnsafeCheck, clang::tidy::cppcoreguidelines::AvoidDoWhileCheck, clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck, clang::tidy::cppcoreguidelines::InitVariablesCheck, clang::tidy::cppcoreguidelines::MacroUsageCheck, clang::tidy::cppcoreguidelines::NarrowingConversionsCheck, clang::tidy::cppcoreguidelines::NoMallocCheck, clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck, clang::tidy::cppcoreguidelines::OwningMemoryCheck, clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck, clang::tidy::cppcoreguidelines::ProTypeConstCastCheck, clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck, clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck, clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck, clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck, clang::tidy::google::runtime::IntegerTypesCheck, clang::tidy::hicpp::IgnoredRemoveResultCheck, clang::tidy::hicpp::MultiwayPathsCoveredCheck, clang::tidy::hicpp::SignedBitwiseCheck, clang::tidy::misc::ConstCorrectnessCheck, clang::tidy::misc::CoroutineHostileRAIICheck, clang::tidy::misc::HeaderIncludeCycleCheck, clang::tidy::misc::IncludeCleanerCheck, clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck, clang::tidy::misc::ThrowByValueCatchByReferenceCheck, clang::tidy::misc::UniqueptrResetReleaseCheck, clang::tidy::misc::UnusedParametersCheck, clang::tidy::misc::UseInternalLinkageCheck, clang::tidy::modernize::AvoidBindCheck, clang::tidy::modernize::AvoidCArraysCheck, clang::tidy::modernize::DeprecatedHeadersCheck, clang::tidy::modernize::LoopConvertCheck, clang::tidy::modernize::MakeSmartPtrCheck, clang::tidy::modernize::MinMaxUseInitializerListCheck, clang::tidy::modernize::PassByValueCheck, clang::tidy::modernize::RawStringLiteralCheck, clang::tidy::modernize::ReplaceAutoPtrCheck, clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck, clang::tidy::modernize::ReplaceRandomShuffleCheck, clang::tidy::modernize::TypeTraitsCheck, clang::tidy::modernize::UseAutoCheck, clang::tidy::modernize::UseBoolLiteralsCheck, clang::tidy::modernize::UseDefaultMemberInitCheck, clang::tidy::modernize::UseDesignatedInitializersCheck, clang::tidy::modernize::UseEmplaceCheck, clang::tidy::modernize::UseEqualsDefaultCheck, clang::tidy::modernize::UseEqualsDeleteCheck, clang::tidy::modernize::UseIntegerSignComparisonCheck, clang::tidy::modernize::UseNodiscardCheck, clang::tidy::modernize::UseNoexceptCheck, clang::tidy::modernize::UseNullptrCheck, clang::tidy::modernize::UseOverrideCheck, clang::tidy::modernize::UseStdFormatCheck, clang::tidy::modernize::UseStdNumbersCheck, clang::tidy::modernize::UseStdPrintCheck, clang::tidy::modernize::UseTransparentFunctorsCheck, clang::tidy::modernize::UseUsingCheck, clang::tidy::objc::ForbiddenSubclassingCheck, clang::tidy::openmp::ExceptionEscapeCheck, clang::tidy::performance::EnumSizeCheck, clang::tidy::performance::FasterStringFindCheck, clang::tidy::performance::ForRangeCopyCheck, clang::tidy::performance::InefficientStringConcatenationCheck, clang::tidy::performance::InefficientVectorOperationCheck, clang::tidy::performance::MoveConstArgCheck, clang::tidy::performance::NoAutomaticMoveCheck, clang::tidy::performance::TypePromotionInMathFnCheck, clang::tidy::performance::UnnecessaryCopyInitialization, clang::tidy::performance::UnnecessaryValueParamCheck, clang::tidy::portability::RestrictSystemIncludesCheck, clang::tidy::portability::SIMDIntrinsicsCheck, clang::tidy::readability::AvoidConstParamsInDecls, clang::tidy::readability::BracesAroundStatementsCheck, clang::tidy::readability::ConstReturnTypeCheck, clang::tidy::readability::ContainerDataPointerCheck, clang::tidy::readability::ContainerSizeEmptyCheck, clang::tidy::readability::ElseAfterReturnCheck, clang::tidy::readability::EnumInitialValueCheck, clang::tidy::readability::FunctionCognitiveComplexityCheck, clang::tidy::readability::FunctionSizeCheck, clang::tidy::readability::IdentifierLengthCheck, clang::tidy::readability::IdentifierNamingCheck, clang::tidy::readability::ImplicitBoolConversionCheck, clang::tidy::readability::InconsistentDeclarationParameterNameCheck, clang::tidy::readability::MagicNumbersCheck, clang::tidy::readability::OperatorsRepresentationCheck, clang::tidy::readability::QualifiedAutoCheck, clang::tidy::readability::RedundantCastingCheck, clang::tidy::readability::RedundantDeclarationCheck, clang::tidy::readability::RedundantMemberInitCheck, clang::tidy::readability::RedundantSmartptrGetCheck, clang::tidy::readability::RedundantStringInitCheck, clang::tidy::readability::SimplifyBooleanExprCheck, clang::tidy::readability::SimplifySubscriptExprCheck, clang::tidy::readability::StaticAccessedThroughInstanceCheck, clang::tidy::readability::StringCompareCheck, clang::tidy::readability::SuspiciousCallArgumentCheck, clang::tidy::readability::UniqueptrDeleteReleaseCheck, clang::tidy::readability::UppercaseLiteralSuffixCheck, clang::tidy::readability::UseStdMinMaxCheck, clang::tidy::RenamerClangTidyCheck, clang::tidy::utils::TransformerClangTidyCheck, and clang::tidy::zircon::TemporaryObjectsCheck.
Definition at line 132 of file ClangTidyCheck.h.
|
protected |
Definition at line 490 of file ClangTidyCheck.h.
Referenced by clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::check(), clang::tidy::findPriorityOption(), clang::tidy::readability::IdentifierNamingCheck::IdentifierNamingCheck(), clang::tidy::readability::IdentifierNamingCheck::HungarianNotation::loadFileConfig(), clang::tidy::ClangTidyCheck::OptionsView::store(), clang::tidy::boost::UseRangesCheck::storeOptions(), clang::tidy::modernize::UseRangesCheck::storeOptions(), clang::tidy::utils::UseRangesCheck::storeOptions(), clang::tidy::abseil::StringFindStartswithCheck::storeOptions(), clang::tidy::abseil::StringFindStrContainsCheck::storeOptions(), clang::tidy::altera::SingleWorkItemBarrierCheck::storeOptions(), clang::tidy::altera::StructPackAlignCheck::storeOptions(), clang::tidy::android::ComparisonInTempFailureRetryCheck::storeOptions(), clang::tidy::bugprone::ArgumentCommentCheck::storeOptions(), clang::tidy::bugprone::AssertSideEffectCheck::storeOptions(), clang::tidy::bugprone::DanglingHandleCheck::storeOptions(), clang::tidy::bugprone::EasilySwappableParametersCheck::storeOptions(), clang::tidy::bugprone::EmptyCatchCheck::storeOptions(), clang::tidy::bugprone::ExceptionEscapeCheck::storeOptions(), clang::tidy::bugprone::ImplicitWideningOfMultiplicationResultCheck::storeOptions(), clang::tidy::bugprone::LambdaFunctionNameCheck::storeOptions(), clang::tidy::bugprone::MisplacedWideningCastCheck::storeOptions(), clang::tidy::bugprone::NonZeroEnumToBoolConversionCheck::storeOptions(), clang::tidy::bugprone::NotNullTerminatedResultCheck::storeOptions(), clang::tidy::bugprone::OptionalValueConversionCheck::storeOptions(), clang::tidy::bugprone::PointerArithmeticOnPolymorphicObjectCheck::storeOptions(), clang::tidy::bugprone::ReservedIdentifierCheck::storeOptions(), clang::tidy::bugprone::SignalHandlerCheck::storeOptions(), clang::tidy::bugprone::SignedCharMisuseCheck::storeOptions(), clang::tidy::bugprone::SizeofExpressionCheck::storeOptions(), clang::tidy::bugprone::StringConstructorCheck::storeOptions(), clang::tidy::bugprone::SuspiciousEnumUsageCheck::storeOptions(), clang::tidy::bugprone::SuspiciousMissingCommaCheck::storeOptions(), clang::tidy::bugprone::SuspiciousStringCompareCheck::storeOptions(), clang::tidy::bugprone::SuspiciousStringviewDataUsageCheck::storeOptions(), clang::tidy::bugprone::TaggedUnionMemberCountCheck::storeOptions(), clang::tidy::bugprone::TooSmallLoopVariableCheck::storeOptions(), clang::tidy::bugprone::UncheckedOptionalAccessCheck::storeOptions(), clang::tidy::bugprone::UnhandledSelfAssignmentCheck::storeOptions(), clang::tidy::bugprone::UnsafeFunctionsCheck::storeOptions(), clang::tidy::bugprone::UnusedLocalNonTrivialVariableCheck::storeOptions(), clang::tidy::cert::NonTrivialTypesLibcMemoryCallsCheck::storeOptions(), clang::tidy::cert::ProperlySeededRandomGeneratorCheck::storeOptions(), clang::tidy::concurrency::MtUnsafeCheck::storeOptions(), clang::tidy::cppcoreguidelines::AvoidDoWhileCheck::storeOptions(), clang::tidy::cppcoreguidelines::AvoidNonConstGlobalVariablesCheck::storeOptions(), clang::tidy::cppcoreguidelines::InitVariablesCheck::storeOptions(), clang::tidy::cppcoreguidelines::MacroUsageCheck::storeOptions(), clang::tidy::cppcoreguidelines::NarrowingConversionsCheck::storeOptions(), clang::tidy::cppcoreguidelines::NoMallocCheck::storeOptions(), clang::tidy::cppcoreguidelines::NoSuspendWithLockCheck::storeOptions(), clang::tidy::cppcoreguidelines::OwningMemoryCheck::storeOptions(), clang::tidy::cppcoreguidelines::ProBoundsConstantArrayIndexCheck::storeOptions(), clang::tidy::cppcoreguidelines::ProTypeConstCastCheck::storeOptions(), clang::tidy::cppcoreguidelines::ProTypeMemberInitCheck::storeOptions(), clang::tidy::cppcoreguidelines::ProTypeStaticCastDowncastCheck::storeOptions(), clang::tidy::cppcoreguidelines::RvalueReferenceParamNotMovedCheck::storeOptions(), clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::storeOptions(), clang::tidy::google::runtime::IntegerTypesCheck::storeOptions(), clang::tidy::hicpp::IgnoredRemoveResultCheck::storeOptions(), clang::tidy::hicpp::MultiwayPathsCoveredCheck::storeOptions(), clang::tidy::hicpp::SignedBitwiseCheck::storeOptions(), clang::tidy::misc::ConstCorrectnessCheck::storeOptions(), clang::tidy::misc::CoroutineHostileRAIICheck::storeOptions(), clang::tidy::misc::HeaderIncludeCycleCheck::storeOptions(), clang::tidy::misc::IncludeCleanerCheck::storeOptions(), clang::tidy::misc::NonPrivateMemberVariablesInClassesCheck::storeOptions(), clang::tidy::misc::ThrowByValueCatchByReferenceCheck::storeOptions(), clang::tidy::misc::UniqueptrResetReleaseCheck::storeOptions(), clang::tidy::misc::UnusedParametersCheck::storeOptions(), clang::tidy::misc::UseInternalLinkageCheck::storeOptions(), clang::tidy::modernize::AvoidBindCheck::storeOptions(), clang::tidy::modernize::AvoidCArraysCheck::storeOptions(), clang::tidy::modernize::DeprecatedHeadersCheck::storeOptions(), clang::tidy::modernize::LoopConvertCheck::storeOptions(), clang::tidy::modernize::MakeSmartPtrCheck::storeOptions(), clang::tidy::modernize::MinMaxUseInitializerListCheck::storeOptions(), clang::tidy::modernize::PassByValueCheck::storeOptions(), clang::tidy::modernize::RawStringLiteralCheck::storeOptions(), clang::tidy::modernize::ReplaceAutoPtrCheck::storeOptions(), clang::tidy::modernize::ReplaceDisallowCopyAndAssignMacroCheck::storeOptions(), clang::tidy::modernize::ReplaceRandomShuffleCheck::storeOptions(), clang::tidy::modernize::TypeTraitsCheck::storeOptions(), clang::tidy::modernize::UseAutoCheck::storeOptions(), clang::tidy::modernize::UseBoolLiteralsCheck::storeOptions(), clang::tidy::modernize::UseDefaultMemberInitCheck::storeOptions(), clang::tidy::modernize::UseDesignatedInitializersCheck::storeOptions(), clang::tidy::modernize::UseEmplaceCheck::storeOptions(), clang::tidy::modernize::UseEqualsDefaultCheck::storeOptions(), clang::tidy::modernize::UseEqualsDeleteCheck::storeOptions(), clang::tidy::modernize::UseIntegerSignComparisonCheck::storeOptions(), clang::tidy::modernize::UseNodiscardCheck::storeOptions(), clang::tidy::modernize::UseNoexceptCheck::storeOptions(), clang::tidy::modernize::UseNullptrCheck::storeOptions(), clang::tidy::modernize::UseOverrideCheck::storeOptions(), clang::tidy::modernize::UseStdFormatCheck::storeOptions(), clang::tidy::modernize::UseStdNumbersCheck::storeOptions(), clang::tidy::modernize::UseStdPrintCheck::storeOptions(), clang::tidy::modernize::UseTransparentFunctorsCheck::storeOptions(), clang::tidy::modernize::UseUsingCheck::storeOptions(), clang::tidy::objc::ForbiddenSubclassingCheck::storeOptions(), clang::tidy::openmp::ExceptionEscapeCheck::storeOptions(), clang::tidy::performance::EnumSizeCheck::storeOptions(), clang::tidy::performance::FasterStringFindCheck::storeOptions(), clang::tidy::performance::ForRangeCopyCheck::storeOptions(), clang::tidy::performance::InefficientStringConcatenationCheck::storeOptions(), clang::tidy::performance::InefficientVectorOperationCheck::storeOptions(), clang::tidy::performance::MoveConstArgCheck::storeOptions(), clang::tidy::performance::NoAutomaticMoveCheck::storeOptions(), clang::tidy::performance::TypePromotionInMathFnCheck::storeOptions(), clang::tidy::performance::UnnecessaryCopyInitialization::storeOptions(), clang::tidy::performance::UnnecessaryValueParamCheck::storeOptions(), clang::tidy::portability::RestrictSystemIncludesCheck::storeOptions(), clang::tidy::portability::SIMDIntrinsicsCheck::storeOptions(), clang::tidy::readability::AvoidConstParamsInDecls::storeOptions(), clang::tidy::readability::BracesAroundStatementsCheck::storeOptions(), clang::tidy::readability::ConstReturnTypeCheck::storeOptions(), clang::tidy::readability::ContainerDataPointerCheck::storeOptions(), clang::tidy::readability::ContainerSizeEmptyCheck::storeOptions(), clang::tidy::readability::ElseAfterReturnCheck::storeOptions(), clang::tidy::readability::EnumInitialValueCheck::storeOptions(), clang::tidy::readability::FunctionCognitiveComplexityCheck::storeOptions(), clang::tidy::readability::FunctionSizeCheck::storeOptions(), clang::tidy::readability::IdentifierLengthCheck::storeOptions(), clang::tidy::readability::IdentifierNamingCheck::storeOptions(), clang::tidy::readability::ImplicitBoolConversionCheck::storeOptions(), clang::tidy::readability::InconsistentDeclarationParameterNameCheck::storeOptions(), clang::tidy::readability::MagicNumbersCheck::storeOptions(), clang::tidy::readability::OperatorsRepresentationCheck::storeOptions(), clang::tidy::readability::QualifiedAutoCheck::storeOptions(), clang::tidy::readability::RedundantCastingCheck::storeOptions(), clang::tidy::readability::RedundantDeclarationCheck::storeOptions(), clang::tidy::readability::RedundantMemberInitCheck::storeOptions(), clang::tidy::readability::RedundantSmartptrGetCheck::storeOptions(), clang::tidy::readability::RedundantStringInitCheck::storeOptions(), clang::tidy::readability::SimplifyBooleanExprCheck::storeOptions(), clang::tidy::readability::SimplifySubscriptExprCheck::storeOptions(), clang::tidy::readability::StaticAccessedThroughInstanceCheck::storeOptions(), clang::tidy::readability::StringCompareCheck::storeOptions(), clang::tidy::readability::SuspiciousCallArgumentCheck::storeOptions(), clang::tidy::readability::UniqueptrDeleteReleaseCheck::storeOptions(), clang::tidy::readability::UppercaseLiteralSuffixCheck::storeOptions(), clang::tidy::readability::UseStdMinMaxCheck::storeOptions(), clang::tidy::RenamerClangTidyCheck::storeOptions(), clang::tidy::utils::TransformerClangTidyCheck::storeOptions(), clang::tidy::zircon::TemporaryObjectsCheck::storeOptions(), clang::tidy::readability::SuspiciousCallArgumentCheck::SuspiciousCallArgumentCheck(), and clang::tidy::bugprone::TaggedUnionMemberCountCheck::TaggedUnionMemberCountCheck().