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

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/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.h101 const Decl *getDecl() const { return Value.getPointer(); } function in class:clang::GlobalDecl
104 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!");
109 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!");
114 assert(isa<VarDecl>(getDecl()) &&
115 cast<VarDecl>(getDecl())->hasGlobalStorage() &&
122 getDecl()) &&
123 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() &&
124 !isa<CXXConstructorDecl>(getDecl()) &&
125 !isa<CXXDestructorDecl>(getDecl()) &&
131 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)
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DBoolAssignmentChecker.cpp48 return TT->getDecl()->getName() == "BOOL" || // Objective-C
49 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99
50 TT->getDecl()->getName() == "Boolean"; // MacTypes.h
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 DNonnullGlobalConstantsChecker.cpp100 const VarDecl *Decl = Region->getDecl();
113 Ty = TT->getDecl()->getUnderlyingType();
140 IdentifierInfo* II = T->getDecl()->getIdentifier();
H A DMacOSXAPIChecker.cpp97 const VarDecl *VD = VR->getDecl();
112 os << VR->getDecl()->getName() << '\'';
117 os << " the instance variable '" << IVR->getDecl()->getName() << '\'';
H A DNoReturnFunctionChecker.cpp44 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl()))
90 if (const ObjCMethodDecl *MD = Msg.getDecl()) {
H A DUndefCapturedBlockVarChecker.cpp39 if (BR->getDecl() == VD)
66 const VarDecl *VD = VR->getDecl();
H A DUndefinedAssignmentChecker.cpp44 dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
93 dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
H A DObjCSelfInitChecker.cpp173 C.getCurrentAnalysisDeclContext()->getDecl())))
200 C.getCurrentAnalysisDeclContext()->getDecl())))
213 C.getCurrentAnalysisDeclContext()->getDecl())))
241 C.getCurrentAnalysisDeclContext()->getDecl())))
269 C.getCurrentAnalysisDeclContext()->getDecl())))
304 C.getCurrentAnalysisDeclContext()->getDecl())))
419 return (DR->getDecl() == analCtx->getSelfDecl());
H A DDeadStoresChecker.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
263 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(),
290 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
307 if (DR->getDecl() == VD)
311 if (DR->getDecl() == VD)
332 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
350 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl()))
420 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
477 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()));
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp49 if (declRef && isa<VarDecl>(declRef->getDecl())) {
54 VarDecl *var = cast<VarDecl>(declRef->getDecl());
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp47 Out << getVariableName(getDecl());
51 if (getDecl()->getType()->isPointerType())
73 if (getDecl()->getType()->isIntegerType())
82 Out << getVariableName(getDecl()) << ')';
103 Out << getVariableName(getDecl());
143 assert((isDereferencableType(FR->getDecl()->getType()) ||
233 bool NeedsCastBack = isVoidPointer(FR->getDecl()->getType()) ||
H A DUninitializedObjectChecker.cpp67 Out << getVariableName(getDecl());
142 Context.getLocationContext()->getDecl());
192 Node->getLocationContext()->getDecl());
206 Node->getLocationContext()->getDecl());
210 PathDiagnosticLocation::create(Pair.first->getDecl(),
246 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) &&
251 FR->getDecl()->getLocation()))
254 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State))
484 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl());
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DCXXInheritance.cpp161 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition());
277 BaseRecord = cast<CXXRecordDecl>(RT->getDecl());
294 BaseSpec.getType()->castAs<RecordType>()->getDecl());
360 VBase = cast<CXXRecordDecl>(Record->getDecl());
372 HidingClass = cast<CXXRecordDecl>(Record->getDecl());
391 return Specifier->getType()->castAs<RecordType>()->getDecl()
401 Specifier->getType()->castAs<RecordType>()->getDecl()
409 Specifier->getType()->castAs<RecordType>()->getDecl();
439 Specifier->getType()->castAs<RecordType>()->getDecl();
452 return findOrdinaryMember(RT->getDecl(), Pat
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp73 *LCtx->getDecl()->getBody(), ASTCtx);
87 const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl());
H A DMemRegion.cpp165 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } function in class:ObjCIvarRegion
168 return getDecl()->getType();
172 return QualType(getDecl()->getTypeForDecl(), 0);
176 return QualType(getDecl()->getTypeForDecl(), 0);
180 assert(getDecl() &&
183 return getDecl()->getType();
186 const ParmVarDecl *ParamVarRegion::getDecl() const { function in class:ParamVarRegion
187 const Decl *D = getStackFrame()->getDecl();
278 ProfileRegion(ID, getDecl(), superRegion);
290 ProfileRegion(ID, getDecl(), superRegio
[all...]
H A DCallEvent.cpp111 const RecordDecl *RD = RT->getDecl();
137 if (!getDecl())
163 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
171 const Decl *D = getDecl();
256 if (const Decl *callee = getDecl())
314 const Decl *D = getDecl();
331 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl());
412 if (const Decl *D = getDecl()) {
535 const FunctionDecl *D = getDecl();
542 const FunctionDecl *FD = getDecl();
657 const FunctionDecl *SimpleFunctionCall::getDecl() const { function in class:SimpleFunctionCall
665 const FunctionDecl *CXXInstanceCall::getDecl() const { function in class:CXXInstanceCall
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DCocoaConventions.cpp28 StringRef TDName = TD->getDecl()->getIdentifier()->getName();
34 RetTy = TD->getDecl()->getUnderlyingType();
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h96 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl()))
184 const VarDecl *VD = R->getDecl();
201 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " +
206 return "field '" + R->getDecl()->getNameAsString() + "' of " +
216 return "base object '" + R->getDecl()->getQualifiedNameAsString() +
224 const ParmVarDecl *PVD = R->getDecl();
233 const Decl *Parent = R->getStackFrame()->getDecl();
/freebsd-13-stable/contrib/llvm-project/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());
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DScopeInfo.cpp76 D = cast<DeclRefExpr>(E)->getDecl();
87 D = IE->getDecl();
140 : Base(nullptr, true), Property(DRE->getDecl()) {
146 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) {
193 if (isa<VarDecl>(DRE->getDecl()))
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h122 const Decl *getDecl() { return D; } function in class:clang::ento::RuntimeDefinition
208 virtual const Decl *getDecl() const { function in class:clang::ento::CallEvent
241 const Decl *D = getDecl();
346 const auto *ND = dyn_cast_or_null<NamedDecl>(getDecl());
497 const FunctionDecl *getDecl() const override {
498 return cast<FunctionDecl>(CallEvent::getDecl());
537 const FunctionDecl *getDecl() const override;
588 const BlockDecl *getDecl() const override {
592 return BR->getDecl();
596 const BlockDecl *BD = getDecl();
[all...]

Completed in 217 milliseconds

1234567891011>>