|
static void | clang::tidy::performance::recordFixes (const VarDecl &Var, ASTContext &Context, DiagnosticBuilder &Diagnostic) |
static std::optional< SourceLocation > | clang::tidy::performance::firstLocAfterNewLine (SourceLocation Loc, SourceManager &SM) |
static void | clang::tidy::performance::recordRemoval (const DeclStmt &Stmt, ASTContext &Context, DiagnosticBuilder &Diagnostic) |
static bool | clang::tidy::performance::isInitializingVariableImmutable (const VarDecl &InitializingVar, const Stmt &BlockStmt, ASTContext &Context, const std::vector< StringRef > &ExcludedContainerTypes) |
static bool | clang::tidy::performance::isVariableUnused (const VarDecl &Var, const Stmt &BlockStmt, ASTContext &Context) |
static const SubstTemplateTypeParmType * | clang::tidy::performance::getSubstitutedType (const QualType &Type, ASTContext &Context) |
static bool | clang::tidy::performance::differentReplacedTemplateParams (const QualType &VarType, const QualType &InitializerType, ASTContext &Context) |
static QualType | clang::tidy::performance::constructorArgumentType (const VarDecl *OldVar, const BoundNodes &Nodes) |
SmallPtrSet< const DeclRefExpr *, 16 > | clang::tidy::performance::allDeclRefExprs (const VarDecl &VarDecl, const Stmt &Stmt, ASTContext &Context) |
| Returns set of all DeclRefExprs to VarDecl within Stmt.
|
bool | clang::tidy::performance::isOnlyUsedAsConst (const VarDecl &Var, const Stmt &Stmt, ASTContext &Context, int Indirections) |
| Returns true if all DeclRefExpr to the variable within Stmt do not modify it. See constReferenceDeclRefExprs for the meaning of Indirections.
|