clang-tools 6.0.0

Class List
Here are the classes, structs, unions and interfaces with brief descriptions:
[detail level 1 2 3 4 5 6]

▼N clang |
▼N query |
C HelpQuery | Query for "help"
C InvalidQuery | Any query which resulted in a parse error. The error message is in ErrStr
C LetQuery |
C MatchQuery | Query for "match MATCHER"
C NoOpQuery | No-op query (i.e. a blank line)
C Query |
►C QueryParser |
C LexOrCompleteWord |
C QuerySession | Represents the state for a particular clang-query session
C QuitQuery | Query for "quit"
C SetQuery | Query for "set VAR VALUE"
C SetQueryKind |
C SetQueryKind< bool > |
C SetQueryKind< OutputKind > |
▼N tidy |
►N android |
C AndroidModule | This module is for Android specific checks
C CloexecAccept4Check | Finds code that uses accept4() without using the SOCK_CLOEXEC flag
C CloexecAcceptCheck | Accept() is better to be replaced by accept4()
C CloexecCheck | The base class for all close-on-exec checks in Android module
C CloexecCreatCheck | Creat() is better to be replaced by open()
C CloexecDupCheck | Dup() is better to be replaced by fcntl(), which has close-on-exec flag
C CloexecEpollCreate1Check | Finds code that uses epoll_create1() without using the EPOLL_CLOEXEC flag
C CloexecEpollCreateCheck | Epoll_create() is better to be replaced by epoll_create1()
C CloexecFopenCheck | Fopen() is suggested to include "e" in their mode string; like "re" would be better than "r"
C CloexecInotifyInit1Check | Finds code that uses inotify_init1() without using the IN_CLOEXEC flag
C CloexecInotifyInitCheck | Inotify_init() is better to be replaced by inotify_init1()
C CloexecMemfdCreateCheck | Finds code that uses memfd_create() without using the MFD_CLOEXEC flag
C CloexecOpenCheck | Finds code that opens file without using the O_CLOEXEC flag
C CloexecSocketCheck | Finds code that uses socket() without using the SOCK_CLOEXEC flag
►N boost |
C BoostModule |
C UseToStringCheck | 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
►N bugprone |
C ArgumentCommentCheck |
C AssertSideEffectCheck | Finds `assert()` with side effect
C BoolPointerImplicitConversionCheck | Checks for conditions based on implicit conversion from a bool pointer to bool
C BugproneModule |
C CopyConstructorInitCheck | Finds copy constructors where the ctor don't call the copy constructor of the base class
C DanglingHandleCheck | Detect dangling references in value handlers like std::experimental::string_view
C FoldInitTypeCheck | Find and flag invalid initializer values in folds, e.g
C ForwardDeclarationNamespaceCheck | Checks if an unused forward declaration is in a wrong namespace
C InaccurateEraseCheck | Checks for inaccurate use of the `erase()` method
C IntegerDivisionCheck | Finds cases where integer division in a floating point context is likely to cause unintended loss of precision
C MisplacedOperatorInStrlenInAllocCheck | 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
C MoveForwardingReferenceCheck | The check warns if std::move is applied to a forwarding reference (i.e
C MultipleStatementMacroCheck | Detect multiple statement macros that are used in unbraced conditionals
C StringConstructorCheck | Finds suspicious string constructor and check their parameters
C SuspiciousMemsetUsageCheck | Finds memset calls with potential mistakes in their arguments
C UndefinedMemoryManipulationCheck | Finds calls of memory manipulation functions `memset()`, `memcpy()` and `memmove()` on not TriviallyCopyable objects resulting in undefined behavior
C UseAfterMoveCheck | The check warns if an object is used after it has been moved, without an intervening reinitialization
C VirtualNearMissCheck | Checks for near miss of virtual methods
►N cert |
C CERTModule |
C CommandProcessorCheck | Execution of a command processor can lead to security vulnerabilities, and is generally not required
C DontModifyStdNamespaceCheck | Modification of the std or posix namespace can result in undefined behavior
C FloatLoopCounter | This check diagnoses when the loop induction expression of a for loop has floating-point type
C LimitedRandomnessCheck | Pseudorandom number generators are not genuinely random
C PostfixOperatorCheck | Checks if the overloaded postfix ++ and – operator return a constant object
C SetLongJmpCheck | Guards against use of setjmp/longjmp in C++ code
C StaticObjectExceptionCheck | Checks whether the constructor for a static or thread_local object will throw
C StrToNumCheck | Guards against use of string conversion functions that do not have reasonable error handling for conversion errors
C ThrownExceptionTypeCheck | Checks whether a thrown object is nothrow copy constructible
C VariadicFunctionDefCheck | Guards against any C-style variadic function definitions (not declarations)
►N cppcoreguidelines |
C CppCoreGuidelinesModule | A module containing checks of the C++ Core Guidelines
C InterfacesGlobalInitCheck | Flags possible initialization order issues of static variables
C NoMallocCheck | This checker is concerned with C-style memory management and suggest modern alternatives to it
C OwningMemoryCheck | Checks for common use cases for gsl::owner and enforces the unique owner nature of it whenever possible
C ProBoundsArrayToPointerDecayCheck | This check flags all array to pointer decays
C ProBoundsConstantArrayIndexCheck | This checks that all array subscriptions on static arrays and std::arrays have a constant index and are within bounds
C ProBoundsPointerArithmeticCheck | Flags all kinds of pointer arithmetic that have result of pointer type, i.e
C ProTypeConstCastCheck | This check flags all instances of const_cast
C ProTypeCstyleCastCheck | This check flags all use of C-style casts that perform a static_cast downcast, const_cast, or reinterpret_cast
C ProTypeMemberInitCheck | Implements C++ Core Guidelines Type.6
C ProTypeReinterpretCastCheck | Flags all occurrences of reinterpret_cast
C ProTypeStaticCastDowncastCheck | Checks for usages of static_cast, where a base class is downcasted to a derived class
C ProTypeUnionAccessCheck | This check flags all access to members of unions
C ProTypeVarargCheck | This check flags all calls to c-style variadic functions and all use of va_arg
C SlicingCheck | Flags slicing (incomplete copying of an object's state) of member variables or vtable
C SpecialMemberFunctionsCheck | Checks for classes where some, but not all, of the special member functions are defined
►N fuchsia |
C DefaultArgumentsCheck | Default arguments are not allowed in declared or called functions
C FuchsiaModule | This module is for Fuchsia-specific checks
C OverloadedOperatorCheck | Overloading operators is disallowed by the Fuchsia coding standard
C VirtualInheritanceCheck | Defining classes with virtual inheritance is disallowed
►N google |
►N build |
C ExplicitMakePairCheck | Check that `make_pair`'s template arguments are deduced
C UnnamedNamespaceInHeaderCheck | Finds anonymous namespaces in headers
C UsingNamespaceDirectiveCheck | Finds using namespace directives
►N objc |
C AvoidThrowingObjCExceptionCheck | The check is to find usage of
C GlobalVariableDeclarationCheck | The check for Objective-C global variables and constants naming convention
►N readability |
C AvoidCStyleCastsCheck | Finds usages of C-style casts
C GlobalNamesInHeadersCheck | Flag global namespace pollution in header files
►C TodoCommentCheck | Finds TODO comments without a username or bug number
C TodoCommentHandler |
►N runtime |
C IntegerTypesCheck | Finds uses of `short`, `long` and `long long` and suggest replacing them with `u?intXX(_t)?`
C NonConstReferences | Checks the usage of non-constant references in function parameters
C OverloadedUnaryAndCheck | Finds overloads of unary `operator &`
C StringReferenceMemberCheck | Finds members of type `const string&`
C DefaultArgumentsCheck | Checks that default parameters are not given for virtual methods
C ExplicitConstructorCheck | Checks that all single-argument constructors are explicit
C GoogleModule |
►N hicpp |
C ExceptionBaseclassCheck | Check for thrown exceptions and enforce they are all derived from std::exception
C HICPPModule |
C NoAssemblerCheck | Find assembler statements
C SignedBitwiseCheck | This check implements the rule 5.6.1 of the HICPP Standard, which disallows bitwise operations on signed integer types
►N llvm |
C IncludeOrderCheck | Checks the correct order of `#includes`
C LLVMHeaderGuardCheck | Finds and fixes header guards that do not adhere to LLVM style
C LLVMModule |
C TwineLocalCheck | Looks for local `Twine` variables which are prone to use after frees and should be generally avoided
►N misc |
C DefinitionsInHeadersCheck | Finds non-extern non-inline function and variable definitions in header files, which can lead to potential ODR violations
C ForwardingReferenceOverloadCheck | The checker looks for constructors that can act as copy or move constructors through their forwarding reference parameters
C IncorrectRoundings | Checks the usage of patterns known to produce incorrect rounding
►C LambdaFunctionNameCheck | Detect when func or FUNCTION is being used from within a lambda
C SourceRangeLessThan |
C MacroParenthesesCheck | Finds macros that can have unexpected behaviour due to missing parentheses
C MacroRepeatedSideEffectsCheck | Checks for repeated argument with side effects in macros
C MiscModule |
C MisplacedConstCheck | This check diagnoses when a const qualifier is applied to a typedef to a pointer type rather than to the pointee
C MisplacedWideningCastCheck | Find casts of calculation results to bigger type
C NewDeleteOverloadsCheck |
C NonCopyableObjectsCheck | The check flags dereferences and non-pointer declarations of objects that are not meant to be passed by value, such as C FILE objects
C RedundantExpressionCheck | The checker detects expressions that are redundant, because they contain ineffective, useless parts
C SizeofContainerCheck | Find usages of sizeof on expressions of STL container types
C SizeofExpressionCheck | Find suspicious usages of sizeof expression
C StaticAssertCheck | Replaces `assert()` with `static_assert()` if the condition is evaluatable at compile time
C StringCompareCheck | This check flags all calls compare when used to check for string equality or inequality
C StringIntegerAssignmentCheck | Finds instances where an integer is assigned to a string
C StringLiteralWithEmbeddedNulCheck | Find suspicious string literals with embedded NUL characters
C SuspiciousEnumUsageCheck | The checker detects various cases when an enum is probably misused (as a bitmask)
C SuspiciousMissingCommaCheck | This check finds string literals which are probably concatenated accidentally
C SuspiciousSemicolonCheck | This check finds semicolon that modifies the meaning of the program unintendedly
C SuspiciousStringCompareCheck | Find suspicious calls to string compare functions
C SwappedArgumentsCheck | Finds potentially swapped arguments by looking at implicit conversions
C ThrowByValueCatchByReferenceCheck | Checks for locations that do not throw by value
C UnconventionalAssignOperatorCheck | Finds declarations of assignment operators with the wrong return and/or argument types and definitions with good return type but wrong return statements
C UndelegatedConstructorCheck | Finds creation of temporary objects in constructors that look like a function call to another constructor of the same class
C UniqueptrResetReleaseCheck | Find and replace `unique_ptr::reset(release())` with `std::move()`
C UnusedAliasDeclsCheck | Finds unused namespace alias declarations
►C UnusedParametersCheck | Finds unused parameters and fixes them, so that `-Wunused-parameter` can be turned on
C IndexerVisitor |
C UnusedRAIICheck | Finds temporaries that look like RAII objects
C UnusedUsingDeclsCheck | Finds unused using declarations
C ValueRange | Stores a min and a max value which describe an interval
►N modernize |
C AvoidBindCheck | Replace simple uses of std::bind with a lambda
C ComponentFinderASTVisitor | Class used to find the variables and member expressions on which an arbitrary expression depends
C Confidence | A class to encapsulate lowering of the tool's confidence level
C DeclFinderASTVisitor | Class used to determine if any declarations used in a Stmt would conflict with a particular identifier
C DependencyFinderASTVisitor | Class used to determine if an expression is dependent on a variable declared inside of the loop where it would be used
C DeprecatedHeadersCheck | This check replaces deprecated C library headers with their C++ STL alternatives
C ForLoopIndexUseVisitor | Discover usages of expressions consisting of index or iterator access
C LoopConvertCheck |
C MakeSharedCheck | Replace the pattern:
C MakeSmartPtrCheck | Base class for MakeSharedCheck and MakeUniqueCheck
C MakeUniqueCheck | Replace the pattern:
C ModernizeModule |
C PassByValueCheck |
C RawStringLiteralCheck | This check replaces string literals with escaped characters to raw string literals
C RedundantVoidArgCheck | Find and remove redundant void argument lists
C ReplaceAutoPtrCheck | Transforms the deprecated `std::auto_ptr` into the C++11 `std::unique_ptr`
C ReplaceRandomShuffleCheck | Std::random_shuffle will be removed as of C++17
C ReturnBracedInitListCheck | Use a braced init list for return statements rather than unnecessary repeating the return type name
C ShrinkToFitCheck | Replace copy and swap tricks on shrinkable containers with the `shrink_to_fit()` method call
C StmtAncestorASTVisitor | Class used build the reverse AST properties needed to detect name conflicts and free variables
C TUTrackingInfo |
C UnaryStaticAssertCheck | Replaces a static_assert declaration with an empty message with the unary version
C Usage | The information needed to describe a valid convertible usage of an array index or iterator
C UseAutoCheck |
C UseBoolLiteralsCheck | Finds integer literals which are cast to bool
C UseDefaultMemberInitCheck | Convert a default constructor's member initializers into default member initializers
C UseEmplaceCheck | This check looks for cases when inserting new element into std::vector but the element is constructed temporarily
C UseEqualsDefaultCheck | Replace default bodies of special member functions with '= default;'
C UseEqualsDeleteCheck | Mark unimplemented private special member functions with '= delete'
C UseNoexceptCheck | Replace dynamic exception specifications, with `noexcept` (or user-defined macro) or `noexcept(false)`
C UseNullptrCheck |
C UseOverrideCheck | Use C++11's `override` and remove `virtual` where applicable
C UseTransparentFunctorsCheck | Prefer using transparent functors to non-transparent ones
C UseUsingCheck | Check finds typedefs and replaces it with usings
C VariableNamer | Create names for generated variables within a particular statement
►N mpi |
C BufferDerefCheck | This check verifies if a buffer passed to an MPI (Message Passing Interface) function is sufficiently dereferenced
C MPIModule |
C TypeMismatchCheck | This check verifies if buffer type and MPI (Message Passing Interface) datatype pairs match
►N objc |
C AvoidNSErrorInitCheck | Finds usages of [NSSError init]
C AvoidSpinlockCheck | Finds usages of OSSpinlock, which is deprecated due to potential livelock problems
C ForbiddenSubclassingCheck | Finds Objective-C classes which have a superclass which is documented to not support subclassing
C ObjCModule |
C PropertyDeclarationCheck |
►N performance |
C FasterStringFindCheck | Optimize calls to std::string::find() and friends when the needle passed is a single character string literal
C ForRangeCopyCheck | A check that detects copied loop variables and suggests using const references
C ImplicitConversionInLoopCheck |
C InefficientAlgorithmCheck | Warns on inefficient use of STL algorithms on associative containers
C InefficientStringConcatenationCheck | This check is to warn about the performance overhead arising from concatenating strings, using the operator+, instead of operator+=
C InefficientVectorOperationCheck | Finds possible inefficient `std::vector` operations (e.g
C MoveConstArgCheck | Find casts of calculation results to bigger type
C MoveConstructorInitCheck | 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
C NoexceptMoveConstructorCheck | 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)
C PerformanceModule |
C TypePromotionInMathFnCheck | Finds calls to C math library functions with implicit float to double promotions
C UnnecessaryCopyInitialization |
C UnnecessaryValueParamCheck | A check that flags value parameters of expensive to copy types that can safely be converted to const references
►N readability |
C AvoidConstParamsInDecls |
C BracesAroundStatementsCheck | Checks that bodies of `if` statements and loops (`for`, `range-for`, `do-while`, and `while`) are inside braces
C ContainerSizeEmptyCheck | Checks whether a call to the `size()` method can be replaced with a call to `empty()`
C DeletedDefaultCheck | Checks when a constructor or an assignment operator is marked as '= default' but is actually deleted by the compiler
C DeleteNullPointerCheck | Check whether the 'if' statement is unnecessary before calling 'delete' on a pointer
C ElseAfterReturnCheck | Flags the usages of `else` after `return`
C FunctionSizeCheck | Checks for large functions based on various metrics
►C IdentifierNamingCheck | Checks for identifiers naming style mismatch
C NamingCheckFailure | Holds an identifier name check failure, tracking the kind of the identifer, its possible fixup and the starting locations of all the identifier usages
C NamingStyle |
C ImplicitBoolConversionCheck | Checks for use of implicit bool conversions in expressions
C InconsistentDeclarationParameterNameCheck | Checks for declarations of functions which differ in parameter names
C MisleadingIndentationCheck | Checks the code for dangling else, and possible misleading indentations due to missing braces
C MisplacedArrayIndexCheck | Warn about unusual array index syntax (`index[array]` instead of `array[index]`)
C NamedParameterCheck | Find functions with unnamed arguments
C NamespaceCommentCheck | Checks that long namespaces have a closing comment
C NonConstParameterCheck | Warn when a pointer function parameter can be const
C ReadabilityModule |
C RedundantControlFlowCheck | Eliminates redundant `return` statements at the end of a function that returns `void`
C RedundantDeclarationCheck | Find redundant variable declarations
C RedundantFunctionPtrDereferenceCheck | Eliminate redundant dereferences of a function pointer
C RedundantMemberInitCheck | Finds member initializations that are unnecessary because the same default constructor would be called if they were not present
C RedundantSmartptrGetCheck | Find and remove redundant calls to smart pointer's `.get()` method
C RedundantStringCStrCheck | Finds unnecessary calls to `std::string::c_str()`
C RedundantStringInitCheck | Finds unnecessary string initializations
►C SimplifyBooleanExprCheck | Looks for boolean expressions involving boolean constants and simplifies them to use the appropriate boolean expression directly
C Visitor |
C StaticAccessedThroughInstanceCheck | @brief Checks for member expressions that access static members through instances and replaces them with uses of the appropriate qualified-id
C StaticDefinitionInAnonymousNamespaceCheck | Finds static function and variable definitions in anonymous namespace
C UniqueptrDeleteReleaseCheck | Flags statements of the form `delete <unique_ptr expr>.release();` and replaces them with: `<unique_ptr expr> = nullptr;`
►N utils |
C ExprSequence | Provides information about the evaluation order of (sub-)expressions within a `CFGBlock`
C HeaderGuardCheck | Finds and fixes header guards
C IncludeInserter | Produces fixes to insert specified includes to source files, if not yet present
C IncludeInserterCallback |
C IncludeSorter | 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`
C NamespaceAliaser |
C StmtToBlockMap | Maps `Stmt`s to the `CFGBlock` that contains them
C UsingInserter |
C ClangTidyASTConsumerFactory |
C ClangTidyCheck | Base class for all clang-tidy checks
C ClangTidyCheckFactories | A collection of `ClangTidyCheckFactory` instances
►C ClangTidyContext | Every `ClangTidyCheck` reports errors through a `DiagnosticsEngine` provided by this context
C CachedGlobList |
C ClangTidyDiagnosticConsumer | A diagnostic consumer that turns each `Diagnostic` into a `SourceManager-independent` `ClangTidyError`
C ClangTidyError | A detected error complete with information to display diagnostic and automatic fix
C ClangTidyGlobalOptions | Global options
C ClangTidyModule | A clang-tidy module groups a number of `ClangTidyChecks` and gives them a prefixed name
C ClangTidyOptions | Contains options for clang-tidy
C ClangTidyOptionsProvider | Abstract interface for retrieving various ClangTidy options
C ClangTidyPluginAction | The core clang tidy plugin action
C ClangTidyStats | Contains displayed and ignored diagnostic counters for a ClangTidy run
C ConfigOptionsProvider | Implementation of ClangTidyOptions interface, which is used for '-config' command-line option
C DefaultOptionsProvider | Implementation of the `ClangTidyOptionsProvider` interface, which returns the same options for all files
C FileFilter | Contains a list of line ranges in a single file
C FileOptionsProvider | Implementation of the `ClangTidyOptionsProvider` interface, which tries to find a configuration file in the closest parent directory of each source file
C GlobList | Read-only set of strings represented as a list of positive and negative globs
C OptionsView | Provides access to the `ClangTidyCheck` options via check-local names
C ProfileData | Container for clang-tidy profiling data
▼N llvm |
▼N yaml |
C MappingTraits< ClangTidyOptions > |
C MappingTraits< ClangTidyOptions::StringPair > |
C MappingTraits< FileFilter > |
C NOptionMap |
C SequenceTraits< FileFilter::LineRange > |
C DenseMapInfo< 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
C DenseMapInfo< clang::tidy::readability::IdentifierNamingCheck::NamingCheckId > | Specialisation of DenseMapInfo to allow NamingCheckId objects in DenseMaps
▼N Modularize |
C CoverageChecker | Module map checker class
C ModularizeUtilities | Modularize utilities class
C PreprocessorTracker | Preprocessor tracker for modularize
C Argument | This class represents one callback function argument by name and value
C ASTConsumer |
C CallbackCall | This class represents one callback call by name and an array of arguments
C CollectEntitiesAction |
C CollectEntitiesConsumer |
C CollectEntitiesVisitor |
C CommentHandler |
C CompileCheckAction |
C CompileCheckConsumer |
C CompileCheckFrontendActionFactory |
C CompileCheckVisitor |
C CoverageCheckerAction |
C CoverageCheckerCallbacks |
C CoverageCheckerConsumer |
C CoverageCheckerFrontendActionFactory |
C DiagnosticConsumer |
C EntityMap |
C Entry |
C FrontendActionFactory |
C HeaderEntry |
C Location |
C ModularizeFrontendActionFactory |
C MultiplexConsumer |
C PluginASTAction |
C PPCallbacks |
C PPCallbacksTracker | This class overrides the PPCallbacks class for tracking preprocessor activity by means of its callback functions
C StringMap |
C SyntaxOnlyAction |