▼Nclang | |
▼Nquery | |
CHelpQuery | Query for "help" |
CInvalidQuery | Any query which resulted in a parse error. The error message is in ErrStr |
CLetQuery | |
CMatchQuery | Query for "match MATCHER" |
CNoOpQuery | No-op query (i.e. a blank line) |
CQuery | |
►CQueryParser | |
CLexOrCompleteWord | |
CQuerySession | Represents the state for a particular clang-query session |
CQuitQuery | Query for "quit" |
CSetQuery | Query for "set VAR VALUE" |
CSetQueryKind | |
CSetQueryKind< bool > | |
CSetQueryKind< OutputKind > | |
▼Ntidy | |
►Nandroid | |
CAndroidModule | This module is for Android specific checks |
CCloexecAccept4Check | Finds code that uses accept4() without using the SOCK_CLOEXEC flag |
CCloexecAcceptCheck | Accept() is better to be replaced by accept4() |
CCloexecCheck | The base class for all close-on-exec checks in Android module |
CCloexecCreatCheck | Creat() is better to be replaced by open() |
CCloexecDupCheck | Dup() is better to be replaced by fcntl(), which has close-on-exec flag |
CCloexecEpollCreate1Check | Finds code that uses epoll_create1() without using the EPOLL_CLOEXEC flag |
CCloexecEpollCreateCheck | Epoll_create() is better to be replaced by epoll_create1() |
CCloexecFopenCheck | Fopen() is suggested to include "e" in their mode string; like "re" would be better than "r" |
CCloexecInotifyInit1Check | Finds code that uses inotify_init1() without using the IN_CLOEXEC flag |
CCloexecInotifyInitCheck | Inotify_init() is better to be replaced by inotify_init1() |
CCloexecMemfdCreateCheck | Finds code that uses memfd_create() without using the MFD_CLOEXEC flag |
CCloexecOpenCheck | Finds code that opens file without using the O_CLOEXEC flag |
CCloexecSocketCheck | Finds code that uses socket() without using the SOCK_CLOEXEC flag |
►Nboost | |
CBoostModule | |
CUseToStringCheck | Finds calls to boost::lexical_cast<std::string> and boost::lexical_cast<std::wstring> and replaces them with std::to_string and std::to_wstring calls |
►Nbugprone | |
CArgumentCommentCheck | |
CAssertSideEffectCheck | Finds assert() with side effect |
CBoolPointerImplicitConversionCheck | Checks for conditions based on implicit conversion from a bool pointer to bool |
CBugproneModule | |
CCopyConstructorInitCheck | Finds copy constructors where the ctor don't call the copy constructor of the base class |
CDanglingHandleCheck | Detect dangling references in value handlers like std::experimental::string_view |
CFoldInitTypeCheck | Find and flag invalid initializer values in folds, e.g |
CForwardDeclarationNamespaceCheck | Checks if an unused forward declaration is in a wrong namespace |
CInaccurateEraseCheck | Checks for inaccurate use of the erase() method |
CIntegerDivisionCheck | Finds cases where integer division in a floating point context is likely to cause unintended loss of precision |
CMisplacedOperatorInStrlenInAllocCheck | Finds cases where 1 is added to the string in the argument to a function in the strlen() family instead of the result and value is used as an argument to a memory allocation function |
CMoveForwardingReferenceCheck | The check warns if std::move is applied to a forwarding reference (i.e |
CMultipleStatementMacroCheck | Detect multiple statement macros that are used in unbraced conditionals |
CStringConstructorCheck | Finds suspicious string constructor and check their parameters |
CSuspiciousMemsetUsageCheck | Finds memset calls with potential mistakes in their arguments |
CUndefinedMemoryManipulationCheck | Finds calls of memory manipulation functions memset() , memcpy() and memmove() on not TriviallyCopyable objects resulting in undefined behavior |
CUseAfterMoveCheck | The check warns if an object is used after it has been moved, without an intervening reinitialization |
CVirtualNearMissCheck | Checks for near miss of virtual methods |
►Ncert | |
CCERTModule | |
CCommandProcessorCheck | Execution of a command processor can lead to security vulnerabilities, and is generally not required |
CDontModifyStdNamespaceCheck | Modification of the std or posix namespace can result in undefined behavior |
CFloatLoopCounter | This check diagnoses when the loop induction expression of a for loop has floating-point type |
CLimitedRandomnessCheck | Pseudorandom number generators are not genuinely random |
CPostfixOperatorCheck | Checks if the overloaded postfix ++ and – operator return a constant object |
CSetLongJmpCheck | Guards against use of setjmp/longjmp in C++ code |
CStaticObjectExceptionCheck | Checks whether the constructor for a static or thread_local object will throw |
CStrToNumCheck | Guards against use of string conversion functions that do not have reasonable error handling for conversion errors |
CThrownExceptionTypeCheck | Checks whether a thrown object is nothrow copy constructible |
CVariadicFunctionDefCheck | Guards against any C-style variadic function definitions (not declarations) |
►Ncppcoreguidelines | |
CCppCoreGuidelinesModule | A module containing checks of the C++ Core Guidelines |
CInterfacesGlobalInitCheck | Flags possible initialization order issues of static variables |
CNoMallocCheck | This checker is concerned with C-style memory management and suggest modern alternatives to it |
COwningMemoryCheck | Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible |
CProBoundsArrayToPointerDecayCheck | This check flags all array to pointer decays |
CProBoundsConstantArrayIndexCheck | This checks that all array subscriptions on static arrays and std::arrays have a constant index and are within bounds |
CProBoundsPointerArithmeticCheck | Flags all kinds of pointer arithmetic that have result of pointer type, i.e |
CProTypeConstCastCheck | This check flags all instances of const_cast |
CProTypeCstyleCastCheck | This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast |
CProTypeMemberInitCheck | Implements C++ Core Guidelines Type.6 |
CProTypeReinterpretCastCheck | Flags all occurrences of reinterpret_cast |
CProTypeStaticCastDowncastCheck | Checks for usages of static_cast, where a base class is downcasted to a derived class |
CProTypeUnionAccessCheck | This check flags all access to members of unions |
CProTypeVarargCheck | This check flags all calls to c-style variadic functions and all use of va_arg |
CSlicingCheck | Flags slicing (incomplete copying of an object's state) of member variables or vtable |
CSpecialMemberFunctionsCheck | Checks for classes where some, but not all, of the special member functions are defined |
►Nfuchsia | |
CDefaultArgumentsCheck | Default arguments are not allowed in declared or called functions |
CFuchsiaModule | This module is for Fuchsia-specific checks |
COverloadedOperatorCheck | Overloading operators is disallowed by the Fuchsia coding standard |
CVirtualInheritanceCheck | Defining classes with virtual inheritance is disallowed |
►Ngoogle | |
►Nbuild | |
CExplicitMakePairCheck | Check that make_pair 's template arguments are deduced |
CUnnamedNamespaceInHeaderCheck | Finds anonymous namespaces in headers |
CUsingNamespaceDirectiveCheck | Finds using namespace directives |
►Nobjc | |
CAvoidThrowingObjCExceptionCheck | The check is to find usage of |
CGlobalVariableDeclarationCheck | The check for Objective-C global variables and constants naming convention |
►Nreadability | |
CAvoidCStyleCastsCheck | Finds usages of C-style casts |
CGlobalNamesInHeadersCheck | Flag global namespace pollution in header files |
►CTodoCommentCheck | Finds TODO comments without a username or bug number |
CTodoCommentHandler | |
►Nruntime | |
CIntegerTypesCheck | Finds uses of short , long and long long and suggest replacing them with u?intXX(_t)? |
CNonConstReferences | Checks the usage of non-constant references in function parameters |
COverloadedUnaryAndCheck | Finds overloads of unary operator & |
CStringReferenceMemberCheck | Finds members of type const string& |
CDefaultArgumentsCheck | Checks that default parameters are not given for virtual methods |
CExplicitConstructorCheck | Checks that all single-argument constructors are explicit |
CGoogleModule | |
►Nhicpp | |
CExceptionBaseclassCheck | Check for thrown exceptions and enforce they are all derived from std::exception |
CHICPPModule | |
CNoAssemblerCheck | Find assembler statements |
CSignedBitwiseCheck | This check implements the rule 5.6.1 of the HICPP Standard, which disallows bitwise operations on signed integer types |
►Nllvm | |
CIncludeOrderCheck | Checks the correct order of #includes |
CLLVMHeaderGuardCheck | Finds and fixes header guards that do not adhere to LLVM style |
CLLVMModule | |
CTwineLocalCheck | Looks for local Twine variables which are prone to use after frees and should be generally avoided |
►Nmisc | |
CDefinitionsInHeadersCheck | Finds non-extern non-inline function and variable definitions in header files, which can lead to potential ODR violations |
CForwardingReferenceOverloadCheck | The checker looks for constructors that can act as copy or move constructors through their forwarding reference parameters |
CIncorrectRoundings | Checks the usage of patterns known to produce incorrect rounding |
►CLambdaFunctionNameCheck | Detect when func or FUNCTION is being used from within a lambda |
CSourceRangeLessThan | |
CMacroParenthesesCheck | Finds macros that can have unexpected behaviour due to missing parentheses |
CMacroRepeatedSideEffectsCheck | Checks for repeated argument with side effects in macros |
CMiscModule | |
CMisplacedConstCheck | This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to the pointee |
CMisplacedWideningCastCheck | Find casts of calculation results to bigger type |
CNewDeleteOverloadsCheck | |
CNonCopyableObjectsCheck | The check flags dereferences and non-pointer declarations of objects that are not meant to be passed by value, such as C FILE objects |
CRedundantExpressionCheck | The checker detects expressions that are redundant, because they contain ineffective, useless parts |
CSizeofContainerCheck | Find usages of sizeof on expressions of STL container types |
CSizeofExpressionCheck | Find suspicious usages of sizeof expression |
CStaticAssertCheck | Replaces assert() with static_assert() if the condition is evaluatable at compile time |
CStringCompareCheck | This check flags all calls compare when used to check for string equality or inequality |
CStringIntegerAssignmentCheck | Finds instances where an integer is assigned to a string |
CStringLiteralWithEmbeddedNulCheck | Find suspicious string literals with embedded NUL characters |
CSuspiciousEnumUsageCheck | The checker detects various cases when an enum is probably misused (as a bitmask) |
CSuspiciousMissingCommaCheck | This check finds string literals which are probably concatenated accidentally |
CSuspiciousSemicolonCheck | This check finds semicolon that modifies the meaning of the program unintendedly |
CSuspiciousStringCompareCheck | Find suspicious calls to string compare functions |
CSwappedArgumentsCheck | Finds potentially swapped arguments by looking at implicit conversions |
CThrowByValueCatchByReferenceCheck | Checks for locations that do not throw by value |
CUnconventionalAssignOperatorCheck | Finds declarations of assignment operators with the wrong return and/or argument types and definitions with good return type but wrong return statements |
CUndelegatedConstructorCheck | Finds creation of temporary objects in constructors that look like a function call to another constructor of the same class |
CUniqueptrResetReleaseCheck | Find and replace unique_ptr::reset(release()) with std::move() |
CUnusedAliasDeclsCheck | Finds unused namespace alias declarations |
►CUnusedParametersCheck | Finds unused parameters and fixes them, so that -Wunused-parameter can be turned on |
CIndexerVisitor | |
CUnusedRAIICheck | Finds temporaries that look like RAII objects |
CUnusedUsingDeclsCheck | Finds unused using declarations |
CValueRange | Stores a min and a max value which describe an interval |
►Nmodernize | |
CAvoidBindCheck | Replace simple uses of std::bind with a lambda |
CComponentFinderASTVisitor | Class used to find the variables and member expressions on which an arbitrary expression depends |
CConfidence | A class to encapsulate lowering of the tool's confidence level |
CDeclFinderASTVisitor | Class used to determine if any declarations used in a Stmt would conflict with a particular identifier |
CDependencyFinderASTVisitor | Class used to determine if an expression is dependent on a variable declared inside of the loop where it would be used |
CDeprecatedHeadersCheck | This check replaces deprecated C library headers with their C++ STL alternatives |
CForLoopIndexUseVisitor | Discover usages of expressions consisting of index or iterator access |
CLoopConvertCheck | |
CMakeSharedCheck | Replace the pattern: |
CMakeSmartPtrCheck | Base class for MakeSharedCheck and MakeUniqueCheck |
CMakeUniqueCheck | Replace the pattern: |
CModernizeModule | |
CPassByValueCheck | |
CRawStringLiteralCheck | This check replaces string literals with escaped characters to raw string literals |
CRedundantVoidArgCheck | Find and remove redundant void argument lists |
CReplaceAutoPtrCheck | Transforms the deprecated std::auto_ptr into the C++11 std::unique_ptr |
CReplaceRandomShuffleCheck | Std::random_shuffle will be removed as of C++17 |
CReturnBracedInitListCheck | Use a braced init list for return statements rather than unnecessary repeating the return type name |
CShrinkToFitCheck | Replace copy and swap tricks on shrinkable containers with the shrink_to_fit() method call |
CStmtAncestorASTVisitor | Class used build the reverse AST properties needed to detect name conflicts and free variables |
CTUTrackingInfo | |
CUnaryStaticAssertCheck | Replaces a static_assert declaration with an empty message with the unary version |
CUsage | The information needed to describe a valid convertible usage of an array index or iterator |
CUseAutoCheck | |
CUseBoolLiteralsCheck | Finds integer literals which are cast to bool |
CUseDefaultMemberInitCheck | Convert a default constructor's member initializers into default member initializers |
CUseEmplaceCheck | This check looks for cases when inserting new element into std::vector but the element is constructed temporarily |
CUseEqualsDefaultCheck | Replace default bodies of special member functions with '= default;' |
CUseEqualsDeleteCheck | Mark unimplemented private special member functions with '= delete' |
CUseNoexceptCheck | Replace dynamic exception specifications, with noexcept (or user-defined macro) or noexcept(false) |
CUseNullptrCheck | |
CUseOverrideCheck | Use C++11's override and remove virtual where applicable |
CUseTransparentFunctorsCheck | Prefer using transparent functors to non-transparent ones |
CUseUsingCheck | Check finds typedefs and replaces it with usings |
CVariableNamer | Create names for generated variables within a particular statement |
►Nmpi | |
CBufferDerefCheck | This check verifies if a buffer passed to an MPI (Message Passing Interface) function is sufficiently dereferenced |
CMPIModule | |
CTypeMismatchCheck | This check verifies if buffer type and MPI (Message Passing Interface) datatype pairs match |
►Nobjc | |
CAvoidNSErrorInitCheck | Finds usages of [NSSError init] |
CAvoidSpinlockCheck | Finds usages of OSSpinlock, which is deprecated due to potential livelock problems |
CForbiddenSubclassingCheck | Finds Objective-C classes which have a superclass which is documented to not support subclassing |
CObjCModule | |
CPropertyDeclarationCheck | |
►Nperformance | |
CFasterStringFindCheck | Optimize calls to std::string::find() and friends when the needle passed is a single character string literal |
CForRangeCopyCheck | A check that detects copied loop variables and suggests using const references |
CImplicitConversionInLoopCheck | |
CInefficientAlgorithmCheck | Warns on inefficient use of STL algorithms on associative containers |
CInefficientStringConcatenationCheck | This check is to warn about the performance overhead arising from concatenating strings, using the operator+, instead of operator+= |
CInefficientVectorOperationCheck | Finds possible inefficient std::vector operations (e.g |
CMoveConstArgCheck | Find casts of calculation results to bigger type |
CMoveConstructorInitCheck | The check flags user-defined move constructors that have a ctor-initializer initializing a member or base class through a copy constructor instead of a move constructor |
CNoexceptMoveConstructorCheck | The check flags user-defined move constructors and assignment operators not marked with noexcept or marked with noexcept(expr) where expr evaluates to false (but is not a false literal itself) |
CPerformanceModule | |
CTypePromotionInMathFnCheck | Finds calls to C math library functions with implicit float to double promotions |
CUnnecessaryCopyInitialization | |
CUnnecessaryValueParamCheck | A check that flags value parameters of expensive to copy types that can safely be converted to const references |
►Nreadability | |
CAvoidConstParamsInDecls | |
CBracesAroundStatementsCheck | Checks that bodies of if statements and loops (for , range-for , do-while , and while ) are inside braces |
CContainerSizeEmptyCheck | Checks whether a call to the size() method can be replaced with a call to empty() |
CDeletedDefaultCheck | Checks when a constructor or an assignment operator is marked as '= default' but is actually deleted by the compiler |
CDeleteNullPointerCheck | Check whether the 'if' statement is unnecessary before calling 'delete' on a pointer |
CElseAfterReturnCheck | Flags the usages of else after return |
CFunctionSizeCheck | Checks for large functions based on various metrics |
►CIdentifierNamingCheck | Checks for identifiers naming style mismatch |
CNamingCheckFailure | Holds an identifier name check failure, tracking the kind of the identifer, its possible fixup and the starting locations of all the identifier usages |
CNamingStyle | |
CImplicitBoolConversionCheck | Checks for use of implicit bool conversions in expressions |
CInconsistentDeclarationParameterNameCheck | Checks for declarations of functions which differ in parameter names |
CMisleadingIndentationCheck | Checks the code for dangling else, and possible misleading indentations due to missing braces |
CMisplacedArrayIndexCheck | Warn about unusual array index syntax (index[array] instead of array[index] ) |
CNamedParameterCheck | Find functions with unnamed arguments |
CNamespaceCommentCheck | Checks that long namespaces have a closing comment |
CNonConstParameterCheck | Warn when a pointer function parameter can be const |
CReadabilityModule | |
CRedundantControlFlowCheck | Eliminates redundant return statements at the end of a function that returns void |
CRedundantDeclarationCheck | Find redundant variable declarations |
CRedundantFunctionPtrDereferenceCheck | Eliminate redundant dereferences of a function pointer |
CRedundantMemberInitCheck | Finds member initializations that are unnecessary because the same default constructor would be called if they were not present |
CRedundantSmartptrGetCheck | Find and remove redundant calls to smart pointer's .get() method |
CRedundantStringCStrCheck | Finds unnecessary calls to std::string::c_str() |
CRedundantStringInitCheck | Finds unnecessary string initializations |
►CSimplifyBooleanExprCheck | Looks for boolean expressions involving boolean constants and simplifies them to use the appropriate boolean expression directly |
CVisitor | |
CStaticAccessedThroughInstanceCheck | @brief Checks for member expressions that access static members through instances and replaces them with uses of the appropriate qualified-id |
CStaticDefinitionInAnonymousNamespaceCheck | Finds static function and variable definitions in anonymous namespace |
CUniqueptrDeleteReleaseCheck | Flags statements of the form delete <unique_ptr expr>.release(); and replaces them with: <unique_ptr expr> = nullptr; |
►Nutils | |
CExprSequence | Provides information about the evaluation order of (sub-)expressions within a CFGBlock |
CHeaderGuardCheck | Finds and fixes header guards |
CIncludeInserter | Produces fixes to insert specified includes to source files, if not yet present |
CIncludeInserterCallback | |
CIncludeSorter | Class used by IncludeInserterCallback to record the names of the inclusions in a given source file being processed and generate the necessary commands to sort the inclusions according to the precedence encoded in IncludeKinds |
CNamespaceAliaser | |
CStmtToBlockMap | Maps Stmt s to the CFGBlock that contains them |
CUsingInserter | |
CClangTidyASTConsumerFactory | |
CClangTidyCheck | Base class for all clang-tidy checks |
CClangTidyCheckFactories | A collection of ClangTidyCheckFactory instances |
►CClangTidyContext | Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context |
CCachedGlobList | |
CClangTidyDiagnosticConsumer | A diagnostic consumer that turns each Diagnostic into a SourceManager-independent ClangTidyError |
CClangTidyError | A detected error complete with information to display diagnostic and automatic fix |
CClangTidyGlobalOptions | Global options |
CClangTidyModule | A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name |
CClangTidyOptions | Contains options for clang-tidy |
CClangTidyOptionsProvider | Abstract interface for retrieving various ClangTidy options |
CClangTidyPluginAction | The core clang tidy plugin action |
CClangTidyStats | Contains displayed and ignored diagnostic counters for a ClangTidy run |
CConfigOptionsProvider | Implementation of ClangTidyOptions interface, which is used for '-config' command-line option |
CDefaultOptionsProvider | Implementation of the ClangTidyOptionsProvider interface, which returns the same options for all files |
CFileFilter | Contains a list of line ranges in a single file |
CFileOptionsProvider | Implementation of the ClangTidyOptionsProvider interface, which tries to find a configuration file in the closest parent directory of each source file |
CGlobList | Read-only set of strings represented as a list of positive and negative globs |
COptionsView | Provides access to the ClangTidyCheck options via check-local names |
CProfileData | Container for clang-tidy profiling data |
▼Nllvm | |
▼Nyaml | |
CMappingTraits< ClangTidyOptions > | |
CMappingTraits< ClangTidyOptions::StringPair > | |
CMappingTraits< FileFilter > | |
CNOptionMap | |
CSequenceTraits< FileFilter::LineRange > | |
CDenseMapInfo< clang::tidy::cppcoreguidelines::SpecialMemberFunctionsCheck::ClassDefId > | Specialisation of DenseMapInfo to allow ClassDefId objects in DenseMaps FIXME: Move this to the corresponding cpp file as is done for clang-tidy/readability/IdentifierNamingCheck.cpp |
CDenseMapInfo< clang::tidy::readability::IdentifierNamingCheck::NamingCheckId > | Specialisation of DenseMapInfo to allow NamingCheckId objects in DenseMaps |
▼NModularize | |
CCoverageChecker | Module map checker class |
CModularizeUtilities | Modularize utilities class |
CPreprocessorTracker | Preprocessor tracker for modularize |
CArgument | This class represents one callback function argument by name and value |
CASTConsumer | |
CCallbackCall | This class represents one callback call by name and an array of arguments |
CCollectEntitiesAction | |
CCollectEntitiesConsumer | |
CCollectEntitiesVisitor | |
CCommentHandler | |
CCompileCheckAction | |
CCompileCheckConsumer | |
CCompileCheckFrontendActionFactory | |
CCompileCheckVisitor | |
CCoverageCheckerAction | |
CCoverageCheckerCallbacks | |
CCoverageCheckerConsumer | |
CCoverageCheckerFrontendActionFactory | |
CDiagnosticConsumer | |
CEntityMap | |
CEntry | |
CFrontendActionFactory | |
CHeaderEntry | |
CLocation | |
CModularizeFrontendActionFactory | |
CMultiplexConsumer | |
CPluginASTAction | |
CPPCallbacks | |
CPPCallbacksTracker | This class overrides the PPCallbacks class for tracking preprocessor activity by means of its callback functions |
CStringMap | |
CSyntaxOnlyAction | |