clang-tools 22.0.0git
clang::tidy::llvm_check Namespace Reference

Classes

class  IncludeOrderCheck
 Checks the correct order of #includes. More...
class  LLVMHeaderGuardCheck
 Finds and fixes header guards that do not adhere to LLVM style. More...
class  LLVMModule
class  PreferIsaOrDynCastInConditionalsCheck
 Looks at conditionals and finds and replaces cases of cast<>, which will / assert rather than return a null pointer, and dyn_cast<> where / the return value is not captured. More...
class  PreferRegisterOverUnsignedCheck
 Historically, LLVM has used unsigned to represent registers. More...
class  PreferStaticOverAnonymousNamespaceCheck
 Finds function and variable declarations inside anonymous namespace and suggests replacing them with static declarations. More...
class  TwineLocalCheck
 Looks for local Twine variables which are prone to use after frees and should be generally avoided. More...
class  UseNewMlirOpBuilderCheck
 Checks for uses of MLIR's old/to be deprecated OpBuilder::create<T> form and suggests using T::create instead. More...
class  UseRangesCheck
 Finds calls to STL iterator algorithms that can be replaced with LLVM range-based algorithms from llvm/ADT/STLExtras.h. More...

Functions

static int getPriority (StringRef Filename, bool IsAngled, bool IsMainModule)
static ClangTidyModuleRegistry::Add< LLVMModuleX ("llvm-module", "Adds LLVM lint checks.")

Function Documentation

◆ getPriority()

int clang::tidy::llvm_check::getPriority ( StringRef Filename,
bool IsAngled,
bool IsMainModule )
static

Definition at line 59 of file IncludeOrderCheck.cpp.

◆ X()

ClangTidyModuleRegistry::Add< LLVMModule > clang::tidy::llvm_check::X ( "llvm-module" ,
"Adds LLVM lint checks."  )
static