Home
last modified time | relevance | path

Searched refs:getDecl (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h106 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function
109 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType()
114 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType()
119 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind()
120 cast<VarDecl>(getDecl())->hasGlobalStorage() && in getDynamicInitKind()
127 getDecl()) && in getMultiVersionIndex()
128 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex()
129 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex()
130 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex()
136 assert(((isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind()
[all …]
H A DDeclAccessPair.h61 NamedDecl *getDecl() const { in getDecl() function
71 set(getDecl(), AS); in setAccess()
77 operator NamedDecl*() const { return getDecl(); }
78 NamedDecl *operator->() const { return getDecl(); }
H A DUnresolvedSet.h51 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() function
57 NamedDecl *operator*() const { return getDecl(); }
104 if (I->getDecl() == Old) in replace()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp188 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } in getDecl() function in ObjCIvarRegion
191 return getDecl()->getType(); in getValueType()
195 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType()
199 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType()
203 assert(getDecl() && in getValueType()
206 return getDecl()->getType(); in getValueType()
209 const ParmVarDecl *ParamVarRegion::getDecl() const { in getDecl() function in ParamVarRegion
210 const Decl *D = getStackFrame()->getDecl(); in getDecl()
301 ProfileRegion(ID, getDecl(), superRegion); in Profile()
313 ProfileRegion(ID, getDecl(), superRegion); in Profile()
[all …]
H A DCallEvent.cpp92 const RecordDecl *RD = RT->getDecl(); in isCallback()
118 if (!getDecl()) in hasNonNullArgumentsWithType()
144 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction()
152 const Decl *D = getDecl(); in getCalleeAnalysisDeclContext()
237 if (const Decl *callee = getDecl()) in invalidateRegions()
296 const Decl *D = getDecl(); in getProgramPoint()
337 if (const Decl *D = getDecl()) { in dump()
394 return UT && UT->getDecl()->hasAttr<TransparentUnionAttr>(); in isTransparentUnion()
436 const auto *CallExprDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in castArgToParamTypeIfNeeded()
553 const FunctionDecl *D = getDecl(); in parameters()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp44 Out << getVariableName(getDecl()); in printNode()
48 if (getDecl()->getType()->isPointerType()) in printSeparator()
70 if (getDecl()->getType()->isIntegerType()) in printPrefix()
79 Out << getVariableName(getDecl()) << ')'; in printNode()
98 Out << getVariableName(getDecl()); in printNode()
138 assert((isDereferencableType(FR->getDecl()->getType()) || in isDereferencableUninit()
229 isVoidPointer(FR->getDecl()->getType()) || isa<nonloc::LocAsInteger>(V); in dereference()
H A DUninitializedObjectChecker.cpp64 Out << getVariableName(getDecl()); in printNode()
137 Context.getLocationContext()->getDecl()); in checkEndFunction()
187 Node->getLocationContext()->getDecl()); in checkEndFunction()
201 Node->getLocationContext()->getDecl()); in checkEndFunction()
205 PathDiagnosticLocation::create(Pair.first->getDecl(), in checkEndFunction()
241 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) && in addFieldToUninits()
246 FR->getDecl()->getLocation())) in addFieldToUninits()
249 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State)) in addFieldToUninits()
481 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DTypedefUnderlyingTypeResolver.cpp27 TypeDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
29 TypeDecl = TagTy->getDecl(); in getUnderlyingTypeDecl()
32 TypeDecl = ObjCITy->getDecl(); in getUnderlyingTypeDecl()
39 const TypedefNameDecl *TypedefDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.cpp32 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
56 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType()
108 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); in getRecordArgABI()
110 if (!RT->getDecl()->canPassInRegisters()) in getRecordArgABI()
129 if (!isa<CXXRecordDecl>(RT->getDecl()) && in classifyReturnType()
130 !RT->getDecl()->canPassInRegisters()) { in classifyReturnType()
141 const RecordDecl *UD = UT->getDecl(); in useFirstFieldIfTransparentUnion()
279 if (isa<CXXRecordDecl>(RT->getDecl()) && in isEmptyField()
291 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord()
323 const RecordDecl *RD = RT->getDecl(); in isEmptyRecordForLayout()
[all …]
H A DCGCXX.cpp87 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in TryEmitBaseDestructorAsAlias()
146 TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitBaseDestructorAsAlias()
214 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor()
221 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor()
291 const auto *RD = cast<CXXRecordDecl>(RT->getDecl()); in BuildAppleKextVirtualCall()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFunctionPointer.h31 if (!Func || !Func->getDecl()) in isWeak()
34 return Func->getDecl()->isWeak(); in isWeak()
44 return toAPValue(Ctx).getAsString(Ctx, Func->getDecl()->getType()); in toDiagnosticString()
H A DMemberPointer.cpp37 if (FD->getParent() == BaseRecord->getDecl()) in toPointer()
47 if (const RecordDecl *BaseDecl = Base.getDeclPtr().getRecord()->getDecl(); in toPointer()
82 return APValue(getDecl(), /*IsDerivedMember=*/false, in toAPValue()
H A DFunctionPointer.cpp19 if (Func->getDecl()) in toAPValue()
20 return APValue(Func->getDecl(), CharUnits::fromQuantity(0), {}, in toAPValue()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp115 ND = ty->castAs<RecordType>()->getDecl(); in getBaseTypeIdentifier()
117 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
119 ND = ty->castAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier()
451 return isa<FieldDecl>(Info.getDecl()); in referencesFieldDecls()
674 return RT->getDecl()->isClass(); in isClassType()
680 return RT->getDecl()->isStruct(); in isStructureType()
688 const auto *Decl = RT->getDecl(); in isStructureTypeWithFlexibleArrayMember()
696 return RT->getDecl()->hasAttr<ObjCBoxableAttr>(); in isObjCBoxableRecordType()
702 return RT->getDecl()->isInterface(); in isInterfaceType()
708 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCSelfInitChecker.cpp171 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostObjCMessage()
198 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostStmt()
211 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreStmt()
239 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreCall()
268 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostCall()
303 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkLocation()
417 return (DR->getDecl() == analCtx->getSelfDecl()); in isSelfVar()
H A DDeadStoresChecker.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
260 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, categories::UnusedCode, in Report()
287 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
304 if (DR->getDecl() == VD) in isIncrement()
308 if (DR->getDecl() == VD) in isIncrement()
329 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
346 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
417 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
498 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
H A DCStringSyntaxChecker.cpp41 return D1->getDecl() == D2->getDecl(); in sameDecl()
74 return D->getDecl()->getName(); in getPrintableName()
168 const auto *LenArgVal = dyn_cast<VarDecl>(LenArgDRE->getDecl()); in containsBadStrlcpyStrlcatPattern()
171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
H A DBoolAssignmentChecker.cpp50 return TT->getDecl()->getName() == "BOOL" || // Objective-C in isBooleanType()
51 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99 in isBooleanType()
52 TT->getDecl()->getName() == "Boolean"; // MacTypes.h in isBooleanType()
H A DSmartPtrModeling.cpp125 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall()
200 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in getPointerTypeFromTemplateArg()
213 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType()
235 const auto *CD = dyn_cast_or_null<CXXConversionDecl>(Call.getDecl()); in isBoolConversionMethod()
247 return Call.getDecl() && Call.getDecl()->getDeclContext()->isStdNamespace(); in isStdFunctionCall()
256 const FunctionDecl *FD = FC->getDecl(); in isStdOstreamOperatorCall()
374 if (CC->getDecl()->isCopyConstructor()) in evalCall()
381 QualType ThisType = cast<CXXMethodDecl>(Call.getDecl())->getThisType(); in evalCall()
383 if (CC->getDecl()->isMoveConstructor()) in evalCall()
453 const FunctionDecl *FD = FC->getDecl(); in handleComparisionOp()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h118 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue()
218 const VarDecl *VD = R->getDecl(); in VisitNonParamVarRegion()
235 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " + in VisitObjCIvarRegion()
240 return "field '" + R->getDecl()->getNameAsString() + "' of " + in VisitFieldRegion()
250 return "base object '" + R->getDecl()->getQualifiedNameAsString() + in VisitCXXBaseObjectRegion()
258 const ParmVarDecl *PVD = R->getDecl(); in VisitParamVarRegion()
267 const Decl *Parent = R->getStackFrame()->getDecl(); in VisitParamVarRegion()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h131 const Decl *getDecl() { return D; } in getDecl() function
224 virtual const Decl *getDecl() const { in getDecl() function
263 const Decl *D = getDecl(); in isInSystemHeader()
352 const auto *ND = dyn_cast_or_null<NamedDecl>(getDecl()); in getCalleeIdentifier()
514 const FunctionDecl *getDecl() const override { in getDecl() function
515 return cast<FunctionDecl>(CallEvent::getDecl()); in getDecl()
555 const FunctionDecl *getDecl() const override;
607 const BlockDecl *getDecl() const override { in getDecl() function
611 return BR->getDecl(); in getDecl()
615 const BlockDecl *BD = getDecl(); in isConversionFromLambda()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp61 if (!RT->getDecl()->getDeclName().isEmpty()) in isValidPreserveTypeInfoArg()
64 if (!ET->getDecl()->getDeclName().isEmpty()) in isValidPreserveTypeInfoArg()
97 dyn_cast<EnumConstantDecl>(DR->getDecl()); in isValidPreserveEnumValueArg()
108 return llvm::is_contained(ET->getDecl()->enumerators(), Enumerator); in isValidPreserveEnumValueArg()
H A DScopeInfo.cpp79 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
90 D = IE->getDecl(); in getBaseInfo()
143 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy()
149 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy()
196 if (isa<VarDecl>(DRE->getDecl())) in markSafeWeakUse()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUninitializedValues.cpp242 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon2e1962360311::FindVarResult
266 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
292 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs()
309 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
325 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
505 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar()
509 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar()
749 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
752 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
755 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenTypes.cpp185 return isSafeToConvert(rt->getDecl(), cgt, alreadyChecked); in isSafeToConvert()
245 convertRecordDeclType(base.getType()->castAs<RecordType>()->getDecl()); in convertRecordDeclType()
278 return convertRecordDeclType(recordType->getDecl()); in convertType()
460 const EnumDecl *ed = cast<EnumType>(ty)->getDecl(); in convertType()
551 const RecordDecl *rd = rt->getDecl(); in isZeroInitializable()
600 assert(!dyn_cast<ObjCMethodDecl>(gd.getDecl()) && in arrangeGlobalDeclaration()
602 const auto *fd = cast<FunctionDecl>(gd.getDecl()); in arrangeGlobalDeclaration()
604 if (isa<CXXConstructorDecl>(gd.getDecl()) || in arrangeGlobalDeclaration()
605 isa<CXXDestructorDecl>(gd.getDecl())) { in arrangeGlobalDeclaration()

12345678910>>...16