| /src/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()
|
| /src/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 …]
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckSecuritySyntaxOnly.cpp | 245 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar() 303 const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : nullptr; in checkLoopConditionForFloat() 304 const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : nullptr; in checkLoopConditionForFloat() 314 const VarDecl *vdInc = cast<VarDecl>(drInc->getDecl()); in checkLoopConditionForFloat() 325 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat() 336 BR.EmitBasicReport(AC->getDecl(), filter.checkName_FloatLoopCounter, 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() [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() 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 …]
|
| /src/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()
|
| /src/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()
|
| /src/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 …]
|
| /src/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 …]
|
| /src/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()
|
| /src/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 …]
|
| /src/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()
|
| /src/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | UninitializedValues.cpp | 245 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anona788aaeb0311::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 …]
|
| /src/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()
|