Searched refs:getDecl (Results 1 - 25 of 325) sorted by relevance

1234567891011>>

/openbsd-current/gnu/llvm/clang/include/clang/AST/
H A DDeclAccessPair.h41 NamedDecl *getDecl() const { function in class:clang::DeclAccessPair
52 set(getDecl(), AS);
58 operator NamedDecl*() const { return getDecl(); }
59 NamedDecl *operator->() const { return getDecl(); }
H A DGlobalDecl.h103 const Decl *getDecl() const { return Value.getPointer(); } function in class:clang::GlobalDecl
106 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
111 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
116 assert(isa<VarDecl>(getDecl()) &&
117 cast<VarDecl>(getDecl())->hasGlobalStorage() &&
124 getDecl()) &&
125 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() &&
126 !isa<CXXConstructorDecl>(getDecl()) &&
127 !isa<CXXDestructorDecl>(getDecl()) &&
133 assert(((isa<FunctionDecl>(getDecl())
[all...]
H A DUnresolvedSet.h50 NamedDecl *getDecl() const { return I->getDecl(); } function in class:clang::UnresolvedSetIterator
56 NamedDecl *operator*() const { return getDecl(); }
104 if (I->getDecl() == Old)
/openbsd-current/gnu/llvm/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp26 TypeDecl = TypedefTy->getDecl();
28 TypeDecl = TagTy->getDecl();
31 TypeDecl = ObjCITy->getDecl();
38 const TypedefNameDecl *TypedefDecl = TypedefTy->getDecl();
/openbsd-current/gnu/llvm/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp49 if (declRef && isa<VarDecl>(declRef->getDecl())) {
54 VarDecl *var = cast<VarDecl>(declRef->getDecl());
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp48 Out << getVariableName(getDecl());
52 if (getDecl()->getType()->isPointerType())
74 if (getDecl()->getType()->isIntegerType())
83 Out << getVariableName(getDecl()) << ')';
102 Out << getVariableName(getDecl());
142 assert((isDereferencableType(FR->getDecl()->getType()) ||
233 isVoidPointer(FR->getDecl()->getType()) || isa<nonloc::LocAsInteger>(V);
H A DUninitializedObjectChecker.cpp67 Out << getVariableName(getDecl());
140 Context.getLocationContext()->getDecl());
190 Node->getLocationContext()->getDecl());
204 Node->getLocationContext()->getDecl());
208 PathDiagnosticLocation::create(Pair.first->getDecl(),
244 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) &&
249 FR->getDecl()->getLocation()))
252 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State))
482 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl());
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DCastToStructChecker.cpp66 AC->getDecl(), Checker, "Cast from non-struct type to struct type",
80 VD = SE->getDecl();
97 BR.EmitBasicReport(AC->getDecl(), Checker, "Widening cast to struct type",
H A DBoolAssignmentChecker.cpp53 return TT->getDecl()->getName() == "BOOL" || // Objective-C
54 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99
55 TT->getDecl()->getName() == "Boolean"; // MacTypes.h
H A DNonnullGlobalConstantsChecker.cpp102 const VarDecl *Decl = Region->getDecl();
122 Ty = TT->getDecl()->getUnderlyingType();
145 IdentifierInfo* II = T->getDecl()->getIdentifier();
H A DTrustReturnsNonnullChecker.cpp44 const Decl *CallDeclaration = Call.getDecl();
H A DMacOSXAPIChecker.cpp97 const VarDecl *VD = VR->getDecl();
112 os << VR->getDecl()->getName() << '\'';
117 os << " the instance variable '" << IVR->getDecl()->getName() << '\'';
H A DUndefinedAssignmentChecker.cpp44 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
93 dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
H A DUndefCapturedBlockVarChecker.cpp40 if (BR->getDecl() == VD)
67 const VarDecl *VD = VR->getDecl();
H A DNoReturnFunctionChecker.cpp44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
92 if (const ObjCMethodDecl *MD = Msg.getDecl()) {
H A DObjCSelfInitChecker.cpp174 C.getCurrentAnalysisDeclContext()->getDecl())))
201 C.getCurrentAnalysisDeclContext()->getDecl())))
214 C.getCurrentAnalysisDeclContext()->getDecl())))
242 C.getCurrentAnalysisDeclContext()->getDecl())))
271 C.getCurrentAnalysisDeclContext()->getDecl())))
306 C.getCurrentAnalysisDeclContext()->getDecl())))
421 return (DR->getDecl() == analCtx->getSelfDecl());
H A DDeadStoresChecker.cpp57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
261 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, categories::UnusedCode,
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
305 if (DR->getDecl() == VD)
309 if (DR->getDecl() == VD)
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
347 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
418 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
H A DCStringSyntaxChecker.cpp41 return D1->getDecl() == D2->getDecl();
74 return D->getDecl()->getName();
168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl());
171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl()));
/openbsd-current/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/
H A DControlFlowContext.h40 const Decl *getDecl() const { return ContainingDecl; } function in class:clang::dataflow::ControlFlowContext
/openbsd-current/gnu/llvm/clang/lib/Analysis/
H A DCocoaConventions.cpp28 StringRef TDName = TD->getDecl()->getIdentifier()->getName();
34 RetTy = TD->getDecl()->getUnderlyingType();
/openbsd-current/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp93 const RecordDecl *RD = RT->getDecl();
119 if (!getDecl())
145 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
153 const Decl *D = getDecl();
238 if (const Decl *callee = getDecl())
296 const Decl *D = getDecl();
335 if (const Decl *D = getDecl()) {
392 return UT && UT->getDecl()->hasAttr<TransparentUnionAttr>();
435 Call.getRuntimeDefinition().getDecl()->getAsFunction();
436 const auto *CallExprDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl());
661 const FunctionDecl *SimpleFunctionCall::getDecl() const { function in class:SimpleFunctionCall
669 const FunctionDecl *CXXInstanceCall::getDecl() const { function in class:CXXInstanceCall
[all...]
H A DLoopWidening.cpp72 *LCtx->getDecl()->getBody(), ASTCtx);
86 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl());
H A DMemRegion.cpp169 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } function in class:ObjCIvarRegion
172 return getDecl()->getType();
176 return QualType(getDecl()->getTypeForDecl(), 0);
180 return QualType(getDecl()->getTypeForDecl(), 0);
184 assert(getDecl() &&
187 return getDecl()->getType();
190 const ParmVarDecl *ParamVarRegion::getDecl() const { function in class:ParamVarRegion
191 const Decl *D = getStackFrame()->getDecl();
282 ProfileRegion(ID, getDecl(), superRegion);
294 ProfileRegion(ID, getDecl(), superRegio
[all...]
/openbsd-current/gnu/llvm/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h108 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl()))
207 const VarDecl *VD = R->getDecl();
224 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " +
229 return "field '" + R->getDecl()->getNameAsString() + "' of " +
239 return "base object '" + R->getDecl()->getQualifiedNameAsString() +
247 const ParmVarDecl *PVD = R->getDecl();
256 const Decl *Parent = R->getStackFrame()->getDecl();
/openbsd-current/gnu/llvm/clang/lib/CodeGen/
H A DCGCXX.cpp84 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl());
150 TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) {
217 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn);
224 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
286 const auto *RD = cast<CXXRecordDecl>(RT->getDecl());

Completed in 317 milliseconds

1234567891011>>