/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | GlobalDecl.h | 103 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function 106 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType() 111 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType() 116 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind() 117 cast<VarDecl>(getDecl())->hasGlobalStorage() && in getDynamicInitKind() 124 getDecl()) && in getMultiVersionIndex() 125 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex() 126 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex() 127 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex() 133 assert(((isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind() [all …]
|
H A D | DeclAccessPair.h | 61 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 D | UnresolvedSet.h | 51 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() function 57 NamedDecl *operator*() const { return getDecl(); } 105 if (I->getDecl() == Old) in replace()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | MemRegion.cpp | 179 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } in getDecl() function in ObjCIvarRegion 182 return getDecl()->getType(); in getValueType() 186 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 190 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 194 assert(getDecl() && in getValueType() 197 return getDecl()->getType(); in getValueType() 200 const ParmVarDecl *ParamVarRegion::getDecl() const { in getDecl() function in ParamVarRegion 201 const Decl *D = getStackFrame()->getDecl(); in getDecl() 292 ProfileRegion(ID, getDecl(), superRegion); in Profile() 304 ProfileRegion(ID, getDecl(), superRegion); in Profile() [all …]
|
H A D | CallEvent.cpp | 93 const RecordDecl *RD = RT->getDecl(); in isCallback() 119 if (!getDecl()) in hasNonNullArgumentsWithType() 145 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction() 153 const Decl *D = getDecl(); in getCalleeAnalysisDeclContext() 238 if (const Decl *callee = getDecl()) in invalidateRegions() 297 const Decl *D = getDecl(); in getProgramPoint() 338 if (const Decl *D = getDecl()) { in dump() 395 return UT && UT->getDecl()->hasAttr<TransparentUnionAttr>(); in isTransparentUnion() 438 Call.getRuntimeDefinition().getDecl()->getAsFunction(); in castArgToParamTypeIfNeeded() 439 const auto *CallExprDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in castArgToParamTypeIfNeeded() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
H A D | UninitializedPointee.cpp | 48 Out << getVariableName(getDecl()); in printNode() 52 if (getDecl()->getType()->isPointerType()) in printSeparator() 74 if (getDecl()->getType()->isIntegerType()) in printPrefix() 83 Out << getVariableName(getDecl()) << ')'; in printNode() 102 Out << getVariableName(getDecl()); in printNode() 142 assert((isDereferencableType(FR->getDecl()->getType()) || in isDereferencableUninit() 233 isVoidPointer(FR->getDecl()->getType()) || isa<nonloc::LocAsInteger>(V); in dereference()
|
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/ |
H A D | TypedefUnderlyingTypeResolver.cpp | 27 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 D | ABIInfoImpl.cpp | 31 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType() 54 RetTy = EnumTy->getDecl()->getIntegerType(); in classifyReturnType() 115 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); in getRecordArgABI() 117 if (!RT->getDecl()->canPassInRegisters()) in getRecordArgABI() 136 if (!isa<CXXRecordDecl>(RT->getDecl()) && in classifyReturnType() 137 !RT->getDecl()->canPassInRegisters()) { in classifyReturnType() 147 const RecordDecl *UD = UT->getDecl(); in useFirstFieldIfTransparentUnion() 285 if (isa<CXXRecordDecl>(RT->getDecl()) && in isEmptyField() 297 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord() 329 const RecordDecl *RD = RT->getDecl(); in isEmptyRecordForLayout() [all …]
|
H A D | CGCXX.cpp | 89 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in TryEmitBaseDestructorAsAlias() 148 TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitBaseDestructorAsAlias() 216 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor() 223 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor() 293 const auto *RD = cast<CXXRecordDecl>(RT->getDecl()); in BuildAppleKextVirtualCall()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | IdenticalExprChecker.cpp | 71 BR.EmitBasicReport(AC->getDecl(), Checker, in reportIdenticalExpr() 120 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt() 143 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt() 173 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitIfStmt() 232 if (DeclRef1->getDecl() == DeclRef2->getDecl()) { in checkComparisonOp() 264 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp() 286 AC->getDecl(), Checker, in VisitConditionalOperator() 464 return DeclRef1->getDecl() == DeclRef2->getDecl(); in isIdenticalStmt()
|
H A D | CStringSyntaxChecker.cpp | 41 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 D | BoolAssignmentChecker.cpp | 50 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 D | SmartPtrModeling.cpp | 128 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in isStdSmartPtrCall() 203 const auto *FD = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in getPointerTypeFromTemplateArg() 216 const auto *MethodDecl = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in getInnerPointerType() 238 const auto *CD = dyn_cast_or_null<CXXConversionDecl>(Call.getDecl()); in isBoolConversionMethod() 250 return Call.getDecl() && Call.getDecl()->getDeclContext()->isStdNamespace(); in isStdFunctionCall() 259 const FunctionDecl *FD = FC->getDecl(); in isStdOstreamOperatorCall() 377 if (CC->getDecl()->isCopyConstructor()) in evalCall() 384 QualType ThisType = cast<CXXMethodDecl>(Call.getDecl())->getThisType(); in evalCall() 386 if (CC->getDecl()->isMoveConstructor()) in evalCall() 456 const FunctionDecl *FD = FC->getDecl(); in handleComparisionOp() [all …]
|
H A D | CastToStructChecker.cpp | 66 AC->getDecl(), Checker, "Cast from non-struct type to struct type", in VisitCastExpr() 80 VD = SE->getDecl(); in VisitCastExpr() 97 BR.EmitBasicReport(AC->getDecl(), Checker, "Widening cast to struct type", in VisitCastExpr()
|
H A D | NonnullGlobalConstantsChecker.cpp | 102 const VarDecl *Decl = Region->getDecl(); in isGlobalConstString() 122 Ty = TT->getDecl()->getUnderlyingType(); in isGlobalConstString() 145 IdentifierInfo* II = T->getDecl()->getIdentifier(); in isNonnullType()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | CXXInheritance.cpp | 138 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in forallBases() 254 BaseRecord = cast<CXXRecordDecl>(RT->getDecl()); in lookupInBases() 271 BaseSpec.getType()->castAs<RecordType>()->getDecl()); in lookupInBases() 337 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases() 349 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases() 368 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass() 378 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass() 420 return findOrdinaryMember(cast<CXXRecordDecl>(RT->getDecl()), Path, Name); in findOrdinaryMemberInDependentClasses() 522 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect() 692 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in AddIndirectPrimaryBases() [all …]
|
H A D | Type.cpp | 81 ND = ty->castAs<RecordType>()->getDecl(); in getBaseTypeIdentifier() 83 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier() 85 ND = ty->castAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier() 407 return isa<FieldDecl>(Info.getDecl()); in referencesFieldDecls() 625 return RT->getDecl()->isClass(); in isClassType() 631 return RT->getDecl()->isStruct(); in isStructureType() 639 const auto *Decl = RT->getDecl(); in isStructureTypeWithFlexibleArrayMember() 647 return RT->getDecl()->hasAttr<ObjCBoxableAttr>(); in isObjCBoxableRecordType() 653 return RT->getDecl()->isInterface(); in isInterfaceType() 659 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CallEvent.h | 131 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; 605 const BlockDecl *getDecl() const override { in getDecl() function 609 return BR->getDecl(); in getDecl() 613 const BlockDecl *BD = getDecl(); in isConversionFromLambda() [all …]
|
H A D | MemRegion.h | 612 const NamedDecl *getDecl() const { in getDecl() function 656 const BlockDecl *getDecl() const { in getDecl() function 692 assert(bc->getDecl()); in BlockDataRegion() 708 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() function 942 virtual const ValueDecl *getDecl() const = 0; 966 const VarDecl *getDecl() const override = 0; 973 return getDecl()->getType(); in getValueType() 1006 const VarDecl *getDecl() const override { return VD; } in getDecl() function 1010 return getDecl()->getType(); in getValueType() 1061 const ParmVarDecl *getDecl() const override; [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | FunctionPointer.h | 40 return Func->getDecl()->isWeak(); in isWeak() 53 return APValue(Func->getDecl(), CharUnits::Zero(), {}, in toAPValue() 72 return toAPValue(Ctx).getAsString(Ctx, Func->getDecl()->getType()); in toDiagnosticString()
|
H A D | MemberPointer.cpp | 35 if (FD->getParent() == BaseRecord->getDecl()) in toPointer() 48 if (const RecordDecl *BaseDecl = Base.getDeclPtr().getRecord()->getDecl(); in toPointer() 71 return APValue(cast<ValueDecl>(getDecl()), /*IsDerivedMember=*/false, in toAPValue()
|
H A D | InterpFrame.cpp | 212 return Func->getDecl(); in getCallee() 243 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getSource() 250 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getExpr() 257 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getLocation() 264 if (Func && (!Func->hasBody() || Func->getDecl()->isImplicit()) && Caller) in getRange()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaBPF.cpp | 61 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 D | ScopeInfo.cpp | 80 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo() 91 D = IE->getDecl(); in getBaseInfo() 144 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy() 150 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy() 197 if (isa<VarDecl>(DRE->getDecl())) in markSafeWeakUse()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | UninitializedValues.cpp | 245 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon2e1962360311::FindVarResult 269 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 301 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs() 318 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 334 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 512 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar() 516 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar() 743 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 746 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr() 749 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() [all …]
|