| /freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 115 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind() 123 getDecl()) && in getMultiVersionIndex() 125 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex() 126 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex() 132 assert(isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind() 165 assert(isa<CXXConstructorDecl>(getDecl())); in getWithCtorType() 172 assert(isa<CXXDestructorDecl>(getDecl())); in getWithDtorType() 179 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex() 181 !isa<CXXConstructorDecl>(getDecl()) && in getWithMultiVersionIndex() 182 !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-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | MemRegion.cpp | 169 return getDecl()->getType(); in getValueType() 181 assert(getDecl() && in getValueType() 184 return getDecl()->getType(); in getValueType() 579 const ParmVarDecl *PVD = getDecl(); in dumpToStream() 612 os << getDecl()->getName(); in printPrettyAsExpr() 618 assert(getDecl() && in printPrettyAsExpr() 621 os << getDecl()->getName(); in printPrettyAsExpr() 629 os << getDecl()->getName(); in printPrettyAsExpr() 643 os << "." << getDecl()->getName(); in printPrettyAsExpr() 909 if (VR->getDecl() == VD) in getStackOrCaptureRegionForDeclContext() [all …]
|
| H A D | CallEvent.cpp | 138 if (!getDecl()) in hasNonNullArgumentsWithType() 172 const Decl *D = getDecl(); in getCalleeAnalysisDeclContext() 257 if (const Decl *callee = getDecl()) in invalidateRegions() 315 const Decl *D = getDecl(); in getProgramPoint() 413 if (const Decl *D = getDecl()) { in dump() 574 const FunctionDecl *D = getDecl(); in parameters() 581 const FunctionDecl *FD = getDecl(); in getRuntimeDefinition() 598 const Decl* Decl = AD->getDecl(); in getRuntimeDefinition() 639 const FunctionDecl *D = getDecl(); in argumentsMayEscape() 760 const Decl *D = getDecl(); in getRuntimeDefinition() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 247 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar() 316 const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl()); in checkLoopConditionForFloat() 327 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat() 378 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcmp, in checkCall_bcmp() 420 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcopy, in checkCall_bcopy() 461 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bzero, in checkCall_bzero() 499 BR.EmitBasicReport(AC->getDecl(), filter.checkName_gets, in checkCall_gets() 539 BR.EmitBasicReport(AC->getDecl(), filter.checkName_getpw, in checkCall_getpw() 815 BR.EmitBasicReport(AC->getDecl(), in checkDeprecatedOrUnsafeBufferHandling() 914 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 | 173 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostObjCMessage() 200 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostStmt() 213 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreStmt() 241 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreCall() 269 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostCall() 304 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkLocation() 419 return (DR->getDecl() == analCtx->getSelfDecl()); in isSelfVar()
|
| H A D | DeadStoresChecker.cpp | 57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr() 264 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, categories::UnusedCode, in Report() 291 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() 308 if (DR->getDecl() == VD) in isIncrement() 312 if (DR->getDecl() == VD) in isIncrement() 333 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() 351 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt() 423 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() 503 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 | 48 return TT->getDecl()->getName() == "BOOL" || // Objective-C in isBooleanType() 49 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99 in isBooleanType() 50 TT->getDecl()->getName() == "Boolean"; // MacTypes.h in isBooleanType()
|
| 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 | 100 const VarDecl *Decl = Region->getDecl(); in isGlobalConstString() 113 Ty = TT->getDecl()->getUnderlyingType(); in isGlobalConstString() 140 IdentifierInfo* II = T->getDecl()->getIdentifier(); in isNonnullType()
|
| H A D | MacOSXAPIChecker.cpp | 97 const VarDecl *VD = VR->getDecl(); in CheckDispatchOnce() 112 os << VR->getDecl()->getName() << '\''; in CheckDispatchOnce() 117 os << " the instance variable '" << IVR->getDecl()->getName() << '\''; in CheckDispatchOnce()
|
| H A D | MallocOverflowSecurityChecker.cpp | 143 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() function in __anonc8fb035b0211::CheckOverflowOps 144 static const Decl *getDecl(const MemberExpr *ME) { in getDecl() function in __anonc8fb035b0211::CheckOverflowOps 153 return getDecl(CheckDR) == getDecl(DR) && Pred(Check); in Erase()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedPointee.cpp | 47 Out << getVariableName(getDecl()); in printNode() 51 if (getDecl()->getType()->isPointerType()) in printSeparator() 73 if (getDecl()->getType()->isIntegerType()) in printPrefix() 82 Out << getVariableName(getDecl()) << ')'; in printNode() 103 Out << getVariableName(getDecl()); in printNode() 143 assert((isDereferencableType(FR->getDecl()->getType()) || in isDereferencableUninit() 233 bool NeedsCastBack = isVoidPointer(FR->getDecl()->getType()) || in dereference()
|
| H A D | UninitializedObjectChecker.cpp | 67 Out << getVariableName(getDecl()); in printNode() 142 Context.getLocationContext()->getDecl()); in checkEndFunction() 192 Node->getLocationContext()->getDecl()); in checkEndFunction() 206 Node->getLocationContext()->getDecl()); in checkEndFunction() 210 PathDiagnosticLocation::create(Pair.first->getDecl(), in checkEndFunction() 246 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) && in addFieldToUninits() 251 FR->getDecl()->getLocation())) in addFieldToUninits() 254 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State)) in addFieldToUninits() 484 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | Type.cpp | 583 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType() 644 if (RT->getDecl()->isStruct()) in getAsStructureType() 650 if (!RT->getDecl()->isStruct()) in getAsStructureType() 663 if (RT->getDecl()->isUnion()) in getAsUnionType() 669 if (!RT->getDecl()->isUnion()) in getAsUnionType() 1763 return TT->getDecl(); in getAsTagDecl() 1765 return Injected->getDecl(); in getAsTagDecl() 2015 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isSignedIntegerType() 2062 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isUnsignedIntegerType() 2124 return ET->getDecl()->isComplete() && !ET->getDecl()->isScoped(); in isRealType() [all …]
|
| 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() 694 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in AddIndirectPrimaryBases() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | SValExplainer.h | 96 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue() 184 const VarDecl *VD = R->getDecl(); in VisitNonParamVarRegion() 201 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " + in VisitObjCIvarRegion() 206 return "field '" + R->getDecl()->getNameAsString() + "' of " + in VisitFieldRegion() 216 return "base object '" + R->getDecl()->getQualifiedNameAsString() + in VisitCXXBaseObjectRegion() 224 const ParmVarDecl *PVD = R->getDecl(); in VisitParamVarRegion() 233 const Decl *Parent = R->getStackFrame()->getDecl(); in VisitParamVarRegion()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 122 const Decl *getDecl() { return D; } in getDecl() function 208 virtual const Decl *getDecl() const { in getDecl() function 241 const Decl *D = getDecl(); in isInSystemHeader() 497 const FunctionDecl *getDecl() const override { in getDecl() function 537 const FunctionDecl *getDecl() const override; 586 const BlockDecl *getDecl() const override { in getDecl() function 590 return BR->getDecl(); in getDecl() 594 const BlockDecl *BD = getDecl(); in isConversionFromLambda() 616 return RuntimeDefinition(getDecl()); in getRuntimeDefinition() 681 const FunctionDecl *getDecl() const override; [all …]
|
| H A D | MemRegion.h | 599 const NamedDecl *getDecl() const { in getDecl() function 642 const BlockDecl *getDecl() const { in getDecl() function 690 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() function 898 virtual const ValueDecl *getDecl() const = 0; 921 const VarDecl *getDecl() const override = 0; 927 return getDecl()->getType(); in getValueType() 962 return getDecl()->getType(); in getValueType() 1009 const ParmVarDecl *getDecl() const override; 1076 return getDecl()->getType(); in getValueType() 1102 const ObjCIvarDecl *getDecl() const override; [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 230 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon5bc9106a0311::FindVarResult 254 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 303 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 319 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 501 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar() 750 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 753 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr() 756 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 759 reportConstRefUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 767 if (const VarDecl *VD = Var.getDecl()) in VisitBinaryOperator() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 77 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo() 88 D = IE->getDecl(); in getBaseInfo() 141 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy() 147 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy() 194 if (isa<VarDecl>(DRE->getDecl())) in markSafeWeakUse()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCXX.cpp | 84 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in TryEmitBaseDestructorAsAlias() 150 TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitBaseDestructorAsAlias() 217 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor() 224 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor() 286 const auto *RD = cast<CXXRecordDecl>(RT->getDecl()); in BuildAppleKextVirtualCall()
|