Home
last modified time | relevance | path

Searched defs:DeclRef (Results 1 – 23 of 23) sorted by relevance

/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousReallocUsageCheck.cpp71 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in isAccessForVar() local
142 if (const auto *DeclRef = in check() local
H A DUseAfterMoveCheck.cpp36 const DeclRefExpr *DeclRef; member
231 for (const DeclRefExpr *DeclRef : DeclRefs) { getUsesAndReinits() local
274 const auto *DeclRef = Match.getNodeAs<DeclRefExpr>("declref"); getDeclRefs() local
[all...]
H A DUnsafeFunctionsCheck.cpp185 const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>(DeclRefId); check() local
/llvm-project/clang-tools-extra/clang-tidy/google/
H A DExplicitMakePairCheck.cpp41 const auto *DeclRef = Result.Nodes.getNodeAs<DeclRefExpr>("declref"); in check() local
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DUseAnyOfAllOfCheck.cpp81 return llvm::none_of(Matches, [&Mutations](auto &DeclRef) { in isViableLoop()
H A DElseAfterReturnCheck.cpp52 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(Node)) { in findUsage() local
69 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(Node)) { in findUsageRange() local
/llvm-project/clang-tools-extra/clang-tidy/utils/
H A DDeclRefExprUtils.cpp395 bool isCopyConstructorArgument(const DeclRefExpr &DeclRef, const Decl &Decl, in isCopyConstructorArgument()
409 bool isCopyAssignmentArgument(const DeclRefExpr &DeclRef, const Decl &Decl, in isCopyAssignmentArgument()
H A DRenamerClangTidyCheck.cpp277 bool VisitDeclRefExpr(DeclRefExpr *DeclRef) { in VisitDeclRefExpr() argument
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DThrowByValueCatchByReferenceCheck.cpp80 auto *DeclRef = dyn_cast<DeclRefExpr>(Inner); in diagnoseThrowLocations() local
H A DUnusedParametersCheck.cpp91 WalkUpFromDeclRefExpr(DeclRefExpr * DeclRef) WalkUpFromDeclRefExpr() argument
/llvm-project/clang-tools-extra/clang-tidy/performance/
H A DUnnecessaryValueParamCheck.cpp41 bool hasLoopStmtAncestor(const DeclRefExpr &DeclRef, const Decl &Decl, in hasLoopStmtAncestor() argument
/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DExtractVariable.cpp79 VisitDeclRefExpr(DeclRefExpr * DeclRef) computeReferencedDecls() argument
406 getCallExpr(const SelectionTree::Node * DeclRef) getCallExpr() argument
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp74 bool DependencyFinderASTVisitor::VisitDeclRefExpr(DeclRefExpr *DeclRef) { in VisitDeclRefExpr() argument
127 bool DeclFinderASTVisitor::VisitDeclRefExpr(DeclRefExpr *DeclRef) { in VisitDeclRefExpr() argument
H A DAvoidBindCheck.cpp185 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(Statement)) { in anyDescendantIsLocal() local
/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp113 TEST(WalkAST, DeclRef) { in TEST() argument
/llvm-project/clang/lib/Analysis/
H A DConsumed.cpp832 VisitDeclRefExpr(const DeclRefExpr * DeclRef) VisitDeclRefExpr() argument
/llvm-project/clang/lib/Sema/
H A DSemaCoroutine.cpp1218 if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) { diagReturnOnAllocFailure() local
H A DSemaStmt.cpp1395 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(PrevCase)) { ActOnFinishSwitchStmt() local
1398 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(CurrCase)) { ActOnFinishSwitchStmt() local
H A DSema.cpp2537 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(E.IgnoreParens())) { tryExprAsCall() local
H A DSemaExpr.cpp4258 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParens())) { CheckUnaryExprOrTypeTraitOperand() local
6580 ExprResult DeclRef = BuildBuiltinCallExpr() local
17167 const DeclRefExpr *DeclRef = CheckPossibleDeref(*this, E); WarnOnPendingNoDerefs() local
17203 if (auto *DeclRef = MarkExpressionAsImmediateEscalating() local
17208 } else if (auto *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreImplicit())) { MarkExpressionAsImmediateEscalating() local
17229 if (auto *DeclRef = CheckForImmediateInvocation() local
[all...]
/llvm-project/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp988 auto DeclRef = declRefExpr(to(varDecl().bind("declOfArg"))).bind("arg"); TEST_P() local
1203 auto DeclRef = declRefExpr(to(varDecl().bind("declOfArg"))).bind("arg"); TEST_P() local
/llvm-project/clang/lib/AST/
H A DExpr.cpp4124 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) { getSourceBitField() local
H A DASTImporter.cpp3485 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(CurrentS)) { isAncestorDeclContextOf() local