Home
last modified time | relevance | path

Searched refs:declRef (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/ARCMigrate/
DTransARCAssign.cpp49 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in VisitBinaryOperator() local
50 if (declRef && isa<VarDecl>(declRef->getDecl())) { in VisitBinaryOperator()
55 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in VisitBinaryOperator()
/external/llvm-project/clang/lib/ARCMigrate/
DTransARCAssign.cpp48 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in VisitBinaryOperator() local
49 if (declRef && isa<VarDecl>(declRef->getDecl())) { in VisitBinaryOperator()
54 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in VisitBinaryOperator()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DThrowByValueCatchByReferenceCheck.cpp82 auto *declRef = dyn_cast<DeclRefExpr>(inner); in diagnoseThrowLocations() local
83 if (declRef && isCatchVariable(declRef)) { in diagnoseThrowLocations()
/external/clang/lib/CodeGen/
DCGBlocks.cpp805 DeclRefExpr declRef(const_cast<VarDecl *>(variable), in EmitBlockLiteral() local
809 src = EmitDeclRefLValue(&declRef).getAddress(); in EmitBlockLiteral()
872 DeclRefExpr declRef(const_cast<VarDecl *>(variable), in EmitBlockLiteral() local
877 &declRef, VK_RValue); in EmitBlockLiteral()
DCGObjC.cpp302 const DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(ice->getSubExpr()); in shouldExtendReceiverForInnerPointerMessage() local
303 if (!declRef) return true; in shouldExtendReceiverForInnerPointerMessage()
304 const VarDecl *var = dyn_cast<VarDecl>(declRef->getDecl()); in shouldExtendReceiverForInnerPointerMessage()
/external/llvm-project/clang/lib/Sema/
DSemaCoroutine.cpp1609 ExprResult declRef = S.BuildDeclRefExpr(GroDecl, GroType, VK_LValue, Loc); in makeGroDeclAndReturnStmt() local
1610 if (declRef.isInvalid()) in makeGroDeclAndReturnStmt()
1613 StmtResult ReturnStmt = S.BuildReturnStmt(Loc, declRef.get()); in makeGroDeclAndReturnStmt()
DSemaExpr.cpp12740 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in CheckForModifiableLvalue() local
12741 if (declRef && isa<VarDecl>(declRef->getDecl())) { in CheckForModifiableLvalue()
12742 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in CheckForModifiableLvalue()
/external/llvm-project/clang/lib/CodeGen/
DCGBlocks.cpp947 DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable), in EmitBlockLiteral() local
951 src = EmitDeclRefLValue(&declRef).getAddress(*this); in EmitBlockLiteral()
1021 DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable), in EmitBlockLiteral() local
1026 &declRef, VK_RValue, FPOptionsOverride()); in EmitBlockLiteral()
DCGObjC.cpp319 const DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(ice->getSubExpr()); in shouldExtendReceiverForInnerPointerMessage() local
320 if (!declRef) return true; in shouldExtendReceiverForInnerPointerMessage()
321 const VarDecl *var = dyn_cast<VarDecl>(declRef->getDecl()); in shouldExtendReceiverForInnerPointerMessage()
/external/clang/lib/Sema/
DSemaExpr.cpp9856 DeclRefExpr *declRef = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); in CheckForModifiableLvalue() local
9857 if (declRef && isa<VarDecl>(declRef->getDecl())) { in CheckForModifiableLvalue()
9858 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in CheckForModifiableLvalue()