| /openbsd-src/gnu/llvm/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 | 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()
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| 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() 296 const Decl *D = getDecl(); in getProgramPoint() 335 if (const Decl *D = getDecl()) { in dump() 392 return UT && UT->getDecl()->hasAttr<TransparentUnionAttr>(); in isTransparentUnion() 435 Call.getRuntimeDefinition().getDecl()->getAsFunction(); in castArgToParamTypeIfNeeded() 436 const auto *CallExprDecl = dyn_cast_or_null<FunctionDecl>(Call.getDecl()); in castArgToParamTypeIfNeeded() [all …]
|
| H A D | MemRegion.cpp | 169 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } in getDecl() function in ObjCIvarRegion 172 return getDecl()->getType(); in getValueType() 176 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 180 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 184 assert(getDecl() && in getValueType() 187 return getDecl()->getType(); in getValueType() 190 const ParmVarDecl *ParamVarRegion::getDecl() const { in getDecl() function in ParamVarRegion 191 const Decl *D = getStackFrame()->getDecl(); in getDecl() 282 ProfileRegion(ID, getDecl(), superRegion); in Profile() 294 ProfileRegion(ID, getDecl(), superRegion); in Profile() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 247 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar() 305 const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : nullptr; in checkLoopConditionForFloat() 306 const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : nullptr; in checkLoopConditionForFloat() 316 const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl()); in checkLoopConditionForFloat() 327 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat() 338 BR.EmitBasicReport(AC->getDecl(), filter.checkName_FloatLoopCounter, 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() [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 | 174 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostObjCMessage() 201 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostStmt() 214 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreStmt() 242 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreCall() 271 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostCall() 306 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkLocation() 421 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 | 53 return TT->getDecl()->getName() == "BOOL" || // Objective-C in isBooleanType() 54 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99 in isBooleanType() 55 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 | 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()
|
| /openbsd-src/gnu/llvm/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 | 67 Out << getVariableName(getDecl()); in printNode() 140 Context.getLocationContext()->getDecl()); in checkEndFunction() 190 Node->getLocationContext()->getDecl()); in checkEndFunction() 204 Node->getLocationContext()->getDecl()); in checkEndFunction() 208 PathDiagnosticLocation::create(Pair.first->getDecl(), in checkEndFunction() 244 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) && in addFieldToUninits() 249 FR->getDecl()->getLocation())) in addFieldToUninits() 252 if (Opts.IgnoreGuardedFields && !hasUnguardedAccess(FR->getDecl(), State)) in addFieldToUninits() 482 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | CallEvent.h | 127 const Decl *getDecl() { return D; } in getDecl() function 215 virtual const Decl *getDecl() const { in getDecl() function 254 const Decl *D = getDecl(); in isInSystemHeader() 345 const auto *ND = dyn_cast_or_null<NamedDecl>(getDecl()); in getCalleeIdentifier() 497 const FunctionDecl *getDecl() const override { in getDecl() function 498 return cast<FunctionDecl>(CallEvent::getDecl()); in getDecl() 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() [all …]
|
| H A D | MemRegion.h | 608 const NamedDecl *getDecl() const { in getDecl() function 652 const BlockDecl *getDecl() const { in getDecl() function 688 assert(bc->getDecl()); in BlockDataRegion() 704 const BlockDecl *getDecl() const { return BC->getDecl(); } in getDecl() function 932 virtual const ValueDecl *getDecl() const = 0; 956 const VarDecl *getDecl() const override = 0; 963 return getDecl()->getType(); in getValueType() 996 const VarDecl *getDecl() const override { return VD; } in getDecl() function 1000 return getDecl()->getType(); in getValueType() 1051 const ParmVarDecl *getDecl() const override; [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Type.cpp | 79 ND = ty->castAs<RecordType>()->getDecl(); in getBaseTypeIdentifier() 81 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier() 83 ND = ty->castAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier() 563 return RT->getDecl()->isClass(); in isClassType() 569 return RT->getDecl()->isStruct(); in isStructureType() 575 return RT->getDecl()->hasAttr<ObjCBoxableAttr>(); in isObjCBoxableRecordType() 581 return RT->getDecl()->isInterface(); in isInterfaceType() 587 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType() 601 return RT->getDecl()->isUnion(); in isUnionType() 618 return ET->getDecl()->isScoped(); in isScopedEnumeralType() [all …]
|
| H A D | CXXInheritance.cpp | 137 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in forallBases() 253 BaseRecord = cast<CXXRecordDecl>(RT->getDecl()); in lookupInBases() 270 BaseSpec.getType()->castAs<RecordType>()->getDecl()); in lookupInBases() 336 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases() 348 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases() 367 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass() 377 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass() 419 return findOrdinaryMember(cast<CXXRecordDecl>(RT->getDecl()), Path, Name); in findOrdinaryMemberInDependentClasses() 521 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect() 691 cast<CXXRecordDecl>(I.getType()->castAs<RecordType>()->getDecl()); in AddIndirectPrimaryBases() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 227 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anonb5d9aead0311::FindVarResult 251 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 283 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs() 300 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 316 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 494 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar() 498 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar() 598 return vd == findVar(output).getDecl() && in getUninitUse() 747 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 750 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 78 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo() 89 D = IE->getDecl(); in getBaseInfo() 142 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy() 148 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy() 195 if (isa<VarDecl>(DRE->getDecl())) in markSafeWeakUse()
|
| /openbsd-src/gnu/llvm/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()
|