clang-tools 6.0.0

Namespaces | Functions
DeclRefExprUtils.h File Reference
`#include "clang/AST/ASTContext.h"`
`#include "clang/AST/Type.h"`
`#include "llvm/ADT/SmallPtrSet.h"`
Include dependency graph for DeclRefExprUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces
| clang
| clang::tidy
| clang::tidy::utils
| clang::tidy::utils::decl_ref_expr

## Functions
bool | clang::tidy::utils::decl_ref_expr::isOnlyUsedAsConst (const VarDecl &Var, const Stmt &Stmt, ASTContext &Context)
| Returns true if all `DeclRefExpr` to the variable within `Stmt` do not modify it. More...
SmallPtrSet< const DeclRefExpr *, 16 > | clang::tidy::utils::decl_ref_expr::allDeclRefExprs (const VarDecl &VarDecl, const Stmt &Stmt, ASTContext &Context)
| Returns set of all `DeclRefExprs` to `VarDecl` within `Stmt`. More...
SmallPtrSet< const DeclRefExpr *, 16 > | clang::tidy::utils::decl_ref_expr::allDeclRefExprs (const VarDecl &VarDecl, const Decl &Decl, ASTContext &Context)
| Returns set of all `DeclRefExprs` to `VarDecl` within `Decl`. More...
SmallPtrSet< const DeclRefExpr *, 16 > | clang::tidy::utils::decl_ref_expr::constReferenceDeclRefExprs (const VarDecl &VarDecl, const Stmt &Stmt, ASTContext &Context)
| Returns set of all `DeclRefExprs` to `VarDecl` within `Stmt` where `VarDecl` is guaranteed to be accessed in a const fashion. More...
SmallPtrSet< const DeclRefExpr *, 16 > | clang::tidy::utils::decl_ref_expr::constReferenceDeclRefExprs (const VarDecl &VarDecl, const Decl &Decl, ASTContext &Context)
| Returns set of all `DeclRefExprs` to `VarDecl` within `Decl` where `VarDecl` is guaranteed to be accessed in a const fashion. More...
bool | clang::tidy::utils::decl_ref_expr::isCopyConstructorArgument (const DeclRefExpr &DeclRef, const Decl &Decl, ASTContext &Context)
| Returns `true` if `DeclRefExpr` is the argument of a copy-constructor call expression within `Decl`. More...
bool | clang::tidy::utils::decl_ref_expr::isCopyAssignmentArgument (const DeclRefExpr &DeclRef, const Decl &Decl, ASTContext &Context)
| Returns `true` if `DeclRefExpr` is the argument of a copy-assignment operator CallExpr within `Decl`. More...