Home
last modified time | relevance | path

Searched refs:DeclRef (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DPropertiesBase.td87 def DeclRef : RefPropertyType<"Decl"> { let ConstWhenWriting = 1; }
89 SubclassPropertyType<"CXXRecordDecl", DeclRef>;
91 SubclassPropertyType<"FunctionDecl", DeclRef>;
93 SubclassPropertyType<"NamedDecl", DeclRef>;
95 SubclassPropertyType<"NamespaceDecl", DeclRef>;
97 SubclassPropertyType<"NamespaceAliasDecl", DeclRef>;
99 SubclassPropertyType<"ObjCProtocolDecl", DeclRef>;
101 SubclassPropertyType<"ObjCTypeParamDecl", DeclRef>;
103 SubclassPropertyType<"TagDecl", DeclRef>;
105 SubclassPropertyType<"TemplateDecl", DeclRef>;
[all …]
H A DTypeProperties.td106 def : Property<"Cls", DeclRef> {
382 def : Property<"declaration", DeclRef> {
405 def : Property<"declaration", DeclRef> {
546 def : Property<"declaration", DeclRef> {
600 def : Property<"declaration", DeclRef> {
820 def : Property<"associatedDecl", DeclRef> {
852 def : Property<"associatedDecl", DeclRef> {
959 def : Property<"declaration", DeclRef> {
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DConsumed.cpp500 void VisitDeclRefExpr(const DeclRefExpr *DeclRef);
825 void ConsumedStmtVisitor::VisitDeclRefExpr(const DeclRefExpr *DeclRef) { in VisitDeclRefExpr() argument
826 if (const auto *Var = dyn_cast_or_null<VarDecl>(DeclRef->getDecl())) in VisitDeclRefExpr()
828 PropagationMap.insert(PairType(DeclRef, PropagationInfo(Var))); in VisitDeclRefExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp1116 auto *DeclRef = dyn_cast<DeclRefExpr>(Arguments[I]); in recordPotentialODRUsedVariable() local
1117 if (!DeclRef) in recordPotentialODRUsedVariable()
1119 auto *Variable = dyn_cast<VarDecl>(DeclRef->getDecl()); in recordPotentialODRUsedVariable()
H A DSemaCoroutine.cpp1286 if (auto *DeclRef = dyn_cast_or_null<DeclRefExpr>(E)) { in diagReturnOnAllocFailure() local
1287 auto *Decl = DeclRef->getDecl(); in diagReturnOnAllocFailure()
H A DSemaStmt.cpp1466 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(PrevCase)) { in ActOnFinishSwitchStmt() local
1467 PrevString = DeclRef->getDecl()->getName(); in ActOnFinishSwitchStmt()
1469 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(CurrCase)) { in ActOnFinishSwitchStmt() local
1470 CurrString = DeclRef->getDecl()->getName(); in ActOnFinishSwitchStmt()
H A DSemaExpr.cpp4359 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(E->IgnoreParens())) { in CheckUnaryExprOrTypeTraitOperand() local
4360 if (const auto *PVD = dyn_cast<ParmVarDecl>(DeclRef->getFoundDecl())) { in CheckUnaryExprOrTypeTraitOperand()
6790 ExprResult DeclRef = in BuildBuiltinCallExpr() local
6792 assert(DeclRef.isUsable() && "Builtin reference cannot fail"); in BuildBuiltinCallExpr()
6795 BuildCallExpr(/*Scope=*/nullptr, DeclRef.get(), Loc, CallArgs, Loc); in BuildBuiltinCallExpr()
17656 const DeclRefExpr *DeclRef = CheckPossibleDeref(*this, E); in WarnOnPendingNoDerefs() local
17657 if (DeclRef) { in WarnOnPendingNoDerefs()
17658 const ValueDecl *Decl = DeclRef->getDecl(); in WarnOnPendingNoDerefs()
17692 if (auto *DeclRef = in MarkExpressionAsImmediateEscalating() local
17694 DeclRef->setIsImmediateEscalating(true); in MarkExpressionAsImmediateEscalating()
[all …]
H A DSema.cpp2707 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(E.IgnoreParens())) { in tryExprAsCall() local
2708 if (const auto *Fun = dyn_cast<FunctionDecl>(DeclRef->getDecl())) { in tryExprAsCall()
H A DAnalysisBasedWarnings.cpp676 if (auto *DeclRef = in CheckFallThrough() local
678 if (auto *VD = dyn_cast<VarDecl>(DeclRef->getDecl())) in CheckFallThrough()
H A DSemaOpenMP.cpp16052 } else if (auto *DeclRef = dyn_cast<DeclRefExpr>(DeviceNumExpr)) { in ActOnOpenMPDeviceNum() local
16054 IdentifierInfo *IdInfo = DeclRef->getDecl()->getIdentifier(); in ActOnOpenMPDeviceNum()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExpr.cpp4151 if (DeclRefExpr *DeclRef = dyn_cast<DeclRefExpr>(E)) { in getSourceBitField() local
4152 if (FieldDecl *Field = dyn_cast<FieldDecl>(DeclRef->getDecl())) in getSourceBitField()
4156 if (BindingDecl *BD = dyn_cast<BindingDecl>(DeclRef->getDecl())) in getSourceBitField()
H A DASTImporter.cpp3761 if (const auto *DeclRef = dyn_cast<DeclRefExpr>(CurrentS)) { in isAncestorDeclContextOf() local
3762 if (const Decl *D = DeclRef->getDecl()) in isAncestorDeclContextOf()