Searched refs:DeclRef (Results 1 – 9 of 9) sorted by relevance
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | PropertiesBase.td | 86 def DeclRef : RefPropertyType<"Decl"> { let ConstWhenWriting = 1; } 88 SubclassPropertyType<"CXXRecordDecl", DeclRef>; 90 SubclassPropertyType<"FunctionDecl", DeclRef>; 92 SubclassPropertyType<"NamedDecl", DeclRef>; 94 SubclassPropertyType<"NamespaceDecl", DeclRef>; 96 SubclassPropertyType<"NamespaceAliasDecl", DeclRef>; 98 SubclassPropertyType<"ObjCProtocolDecl", DeclRef>; 100 SubclassPropertyType<"ObjCTypeParamDecl", DeclRef>; 102 SubclassPropertyType<"TagDecl", DeclRef>; 104 SubclassPropertyType<"TemplateDecl", DeclRef>; [all …]
|
| H A D | TypeProperties.td | 356 def : Property<"declaration", DeclRef> { 379 def : Property<"declaration", DeclRef> { 503 def : Property<"declaration", DeclRef> { 557 def : Property<"declaration", DeclRef> { 738 def : Property<"associatedDecl", DeclRef> { 770 def : Property<"associatedDecl", DeclRef> { 877 def : Property<"declaration", DeclRef> {
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | Consumed.cpp | 507 void VisitDeclRefExpr(const DeclRefExpr *DeclRef); 832 void ConsumedStmtVisitor::VisitDeclRefExpr(const DeclRefExpr *DeclRef) { in VisitDeclRefExpr() argument 833 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl())) in VisitDeclRefExpr() 835 PropagationMap.insert(PairType(DeclRef, PropagationInfo(Var))); in VisitDeclRefExpr()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaCoroutine.cpp | 1204 if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) { in diagReturnOnAllocFailure() local 1205 auto *Decl = DeclRef->getDecl(); in diagReturnOnAllocFailure()
|
| H A D | SemaStmt.cpp | 1360 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(PrevCase)) { in ActOnFinishSwitchStmt() local 1361 PrevString = DeclRef->getDecl()->getName(); in ActOnFinishSwitchStmt() 1363 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(CurrCase)) { in ActOnFinishSwitchStmt() local 1364 CurrString = DeclRef->getDecl()->getName(); in ActOnFinishSwitchStmt()
|
| H A D | Sema.cpp | 2496 if (const DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E.IgnoreParens())) { in tryExprAsCall() local 2497 if (const FunctionDecl *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in tryExprAsCall()
|
| H A D | SemaExpr.cpp | 4329 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParens())) { in CheckUnaryExprOrTypeTraitOperand() local 4330 if (ParmVarDecl *PVD = dyn_cast<ParmVarDecl>(DeclRef->getFoundDecl())) { in CheckUnaryExprOrTypeTraitOperand() 7098 ExprResult DeclRef = in BuildBuiltinCallExpr() local 7100 assert(DeclRef.isUsable() && "Builtin reference cannot fail"); in BuildBuiltinCallExpr() 7103 BuildCallExpr(/*Scope=*/nullptr, DeclRef.get(), Loc, CallArgs, Loc); in BuildBuiltinCallExpr() 17736 const DeclRefExpr *DeclRef = CheckPossibleDeref(*this, E); in WarnOnPendingNoDerefs() local 17737 if (DeclRef) { in WarnOnPendingNoDerefs() 17738 const ValueDecl *Decl = DeclRef->getDecl(); in WarnOnPendingNoDerefs() 17781 if (auto *DeclRef = in CheckForImmediateInvocation() local 17783 ExprEvalContexts.back().ReferenceToConsteval.erase(DeclRef); in CheckForImmediateInvocation()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Expr.cpp | 4050 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) { in getSourceBitField() local 4051 if (FieldDecl *Field = dyn_cast<FieldDecl>(DeclRef->getDecl())) in getSourceBitField() 4055 if (BindingDecl *BD = dyn_cast<BindingDecl>(DeclRef->getDecl())) in getSourceBitField()
|
| H A D | ASTImporter.cpp | 3240 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(CurrentS)) in isAncestorDeclContextOf() local 3241 if (const Decl *D = DeclRef->getDecl()) in isAncestorDeclContextOf()
|