| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 102 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function 105 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType() 110 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType() 115 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind() 116 cast<VarDecl>(getDecl())->hasGlobalStorage() && in getDynamicInitKind() 123 getDecl()) && in getMultiVersionIndex() 124 !cast<FunctionDecl>(getDecl())->hasAttr<CUDAGlobalAttr>() && in getMultiVersionIndex() 125 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex() 126 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex() 132 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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | MemRegion.cpp | 166 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { return IVD; } in getDecl() function in ObjCIvarRegion 169 return getDecl()->getType(); in getValueType() 173 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 177 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType() 181 assert(getDecl() && in getValueType() 184 return getDecl()->getType(); in getValueType() 187 const ParmVarDecl *ParamVarRegion::getDecl() const { in getDecl() function in ParamVarRegion 188 const Decl *D = getStackFrame()->getDecl(); in getDecl() 279 ProfileRegion(ID, getDecl(), superRegion); in Profile() 291 ProfileRegion(ID, getDecl(), superRegion); in Profile() [all …]
|
| H A D | CallEvent.cpp | 111 const RecordDecl *RD = RT->getDecl(); in isCallback() 137 if (!getDecl()) in hasNonNullArgumentsWithType() 163 const auto *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction() 171 const Decl *D = getDecl(); in getCalleeAnalysisDeclContext() 256 if (const Decl *callee = getDecl()) in invalidateRegions() 314 const Decl *D = getDecl(); in getProgramPoint() 331 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isCalled() 412 if (const Decl *D = getDecl()) { in dump() 535 const FunctionDecl *D = getDecl(); in parameters() 542 const FunctionDecl *FD = getDecl(); in getRuntimeDefinition() [all …]
|
| H A D | SVals.cpp | 67 if (const auto *FD = dyn_cast<FunctionDecl>(CTR->getDecl())) in getAsFunctionDecl() 72 if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(X->getDecl())) in getAsFunctionDecl() 156 const NamedDecl *nonloc::PointerToMember::getDecl() const { in getDecl() function in nonloc::PointerToMember 335 if (CastRes.getDecl()) in dumpToStream() 336 os << "|" << CastRes.getDecl()->getQualifiedNameAsString() << "|"; in dumpToStream()
|
| /netbsd-src/external/apache2/llvm/dist/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 | 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 | 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 | 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 | MallocOverflowSecurityChecker.cpp | 143 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() function in __anonee03a3320211::CheckOverflowOps 144 static const Decl *getDecl(const MemberExpr *ME) { in getDecl() function in __anonee03a3320211::CheckOverflowOps 153 return getDecl(CheckDR) == getDecl(DR) && Pred(Check); in Erase()
|
| 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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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() 559 return RT->getDecl()->isClass(); in isClassType() 565 return RT->getDecl()->isStruct(); in isStructureType() 571 return RT->getDecl()->hasAttr<ObjCBoxableAttr>(); in isObjCBoxableRecordType() 577 return RT->getDecl()->isInterface(); in isInterfaceType() 583 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType() 597 return RT->getDecl()->isUnion(); in isUnionType() 614 return ET->getDecl()->isScoped(); in isScopedEnumeralType() [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 …]
|
| /netbsd-src/external/apache2/llvm/dist/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() 346 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 | 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() 958 const VarDecl *getDecl() const override { return VD; } in getDecl() function 962 return getDecl()->getType(); in getValueType() 1009 const ParmVarDecl *getDecl() const override; 1070 const FieldDecl *getDecl() const override { return FD; } in getDecl() function [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 230 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon6e987c610311::FindVarResult 254 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() 286 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs() 303 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() 319 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr() 497 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar() 501 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar() 601 return vd == findVar(output).getDecl() && in getUninitUse() 750 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr() 753 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|