| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 116 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind() 124 getDecl()) && in getMultiVersionIndex() 126 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex() 127 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex() 133 assert(((isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind() 170 assert(isa<CXXConstructorDecl>(getDecl())); in getWithCtorType() 177 assert(isa<CXXDestructorDecl>(getDecl())); in getWithDtorType() 184 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex() 186 !isa<CXXConstructorDecl>(getDecl()) && in getWithMultiVersionIndex() 187 !isa<CXXDestructorDecl>(getDecl()) && in getWithMultiVersionIndex() [all …]
|
| H A D | DeclAccessPair.h | 41 NamedDecl *getDecl() const { in getDecl() function 52 set(getDecl(), AS); in setAccess() 58 operator NamedDecl*() const { return getDecl(); } 59 NamedDecl *operator->() const { return getDecl(); }
|
| H A D | UnresolvedSet.h | 50 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() function 56 NamedDecl *operator*() const { return getDecl(); } 104 if (I->getDecl() == Old) in replace()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | MemRegion.cpp | 182 return getDecl()->getType(); in getValueType() 194 assert(getDecl() && in getValueType() 197 return getDecl()->getType(); in getValueType() 614 const ParmVarDecl *PVD = getDecl(); in dumpToStream() 647 os << getDecl()->getName(); in printPrettyAsExpr() 653 assert(getDecl() && in printPrettyAsExpr() 656 os << getDecl()->getName(); in printPrettyAsExpr() 664 os << getDecl()->getName(); in printPrettyAsExpr() 678 os << "." << getDecl()->getName(); in printPrettyAsExpr() 972 if (VR->getDecl() == VD) in getStackOrCaptureRegionForDeclContext() [all …]
|
| H A D | CallEvent.cpp | 119 if (!getDecl()) in hasNonNullArgumentsWithType() 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() 554 const FunctionDecl *D = getDecl(); in parameters() 561 const FunctionDecl *FD = getDecl(); in getRuntimeDefinition() 585 const Decl* Decl = AD->getDecl(); in getRuntimeDefinition() 627 const FunctionDecl *D = getDecl(); in argumentsMayEscape() 752 const Decl *D = getDecl(); in getRuntimeDefinition() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 245 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar() 314 const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl()); in checkLoopConditionForFloat() 325 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat() 376 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcmp, in checkCall_bcmp() 418 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcopy, in checkCall_bcopy() 459 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bzero, in checkCall_bzero() 497 BR.EmitBasicReport(AC->getDecl(), filter.checkName_gets, in checkCall_gets() 537 BR.EmitBasicReport(AC->getDecl(), filter.checkName_getpw, in checkCall_getpw() 812 BR.EmitBasicReport(AC->getDecl(), in checkDeprecatedOrUnsafeBufferHandling() 912 BR.EmitBasicReport(AC->getDecl(), filter.checkName_rand, in checkCall_random() [all …]
|
| 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 | ObjCSelfInitChecker.cpp | 171 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 D | DeadStoresChecker.cpp | 57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 261 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, categories::UnusedCode, in Report() 288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() 305 if (DR->getDecl() == VD) in isIncrement() 309 if (DR->getDecl() == VD) in isIncrement() 330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() 347 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt() 418 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() 499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
|
| 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() 386 if (CC->getDecl()->isMoveConstructor()) in evalCall() 456 const FunctionDecl *FD = FC->getDecl(); in handleComparisionOp() 646 QualType ThisType = cast<CXXMethodDecl>(Call.getDecl())->getThisType(); in handleRelease() [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 | MacOSXAPIChecker.cpp | 99 const VarDecl *VD = VR->getDecl(); in CheckDispatchOnce() 114 os << VR->getDecl()->getName() << '\''; in CheckDispatchOnce() 119 os << " the instance variable '" << IVR->getDecl()->getName() << '\''; in CheckDispatchOnce()
|
| /freebsd-14.2/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()
|
| H A D | UninitializedObjectChecker.cpp | 64 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() 479 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ExtractAPI/ |
| H A D | TypedefUnderlyingTypeResolver.cpp | 26 TypeDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl() 28 TypeDecl = TagTy->getDecl(); in getUnderlyingTypeDecl() 31 TypeDecl = ObjCITy->getDecl(); in getUnderlyingTypeDecl() 38 const TypedefNameDecl *TypedefDecl = TypedefTy->getDecl(); in getUnderlyingTypeDecl()
|
| /freebsd-14.2/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() 112 const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(RT->getDecl()); in getRecordArgABI() 114 if (!RT->getDecl()->canPassInRegisters()) in getRecordArgABI() 133 if (!isa<CXXRecordDecl>(RT->getDecl()) && in classifyReturnType() 134 !RT->getDecl()->canPassInRegisters()) { in classifyReturnType() 144 const RecordDecl *UD = UT->getDecl(); in useFirstFieldIfTransparentUnion() 282 if (isa<CXXRecordDecl>(RT->getDecl()) && in isEmptyField() 294 const RecordDecl *RD = RT->getDecl(); in isEmptyRecord() 315 const RecordDecl *RD = RT->getDecl(); in isSingleElementStruct() [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() 284 const auto *RD = cast<CXXRecordDecl>(RT->getDecl()); in BuildAppleKextVirtualCall()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 108 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue() 207 const VarDecl *VD = R->getDecl(); in VisitNonParamVarRegion() 224 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " + in VisitObjCIvarRegion() 229 return "field '" + R->getDecl()->getNameAsString() + "' of " + in VisitFieldRegion() 239 return "base object '" + R->getDecl()->getQualifiedNameAsString() + in VisitCXXBaseObjectRegion() 247 const ParmVarDecl *PVD = R->getDecl(); in VisitParamVarRegion() 256 const Decl *Parent = R->getStackFrame()->getDecl(); in VisitParamVarRegion()
|
| /freebsd-14.2/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 | 609 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType() 670 if (RT->getDecl()->isStruct()) in getAsStructureType() 676 if (!RT->getDecl()->isStruct()) in getAsStructureType() 689 if (RT->getDecl()->isUnion()) in getAsUnionType() 695 if (!RT->getDecl()->isUnion()) in getAsUnionType() 1829 return TT->getDecl(); in getAsTagDecl() 1831 return Injected->getDecl(); in getAsTagDecl() 2092 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isSignedIntegerType() 2142 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isUnsignedIntegerType() 2214 return ET->getDecl()->isComplete() && !ET->getDecl()->isScoped(); in isRealType() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 130 const Decl *getDecl() { return D; } in getDecl() function 223 virtual const Decl *getDecl() const { in getDecl() function 262 const Decl *D = getDecl(); in isInSystemHeader() 513 const FunctionDecl *getDecl() const override { in getDecl() function 554 const FunctionDecl *getDecl() const override; 604 const BlockDecl *getDecl() const override { in getDecl() function 608 return BR->getDecl(); in getDecl() 612 const BlockDecl *BD = getDecl(); in isConversionFromLambda() 633 return RuntimeDefinition(getDecl()); in getRuntimeDefinition() 699 const FunctionDecl *getDecl() const override; [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 245 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon5aca24ac0311::FindVarResult 269 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 318 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 334 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 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() 752 reportConstRefUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 760 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 79 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()
|