Home
last modified time | relevance | path

Searched refs:getDecl (Results 1 – 25 of 269) sorted by relevance

1234567891011

/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DGlobalDecl.h69 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function
72 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType()
77 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType()
82 assert(isa<FunctionDecl>(getDecl()) && in getMultiVersionIndex()
83 !isa<CXXConstructorDecl>(getDecl()) && in getMultiVersionIndex()
84 !isa<CXXDestructorDecl>(getDecl()) && in getMultiVersionIndex()
109 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex()
110 !isa<CXXConstructorDecl>(getDecl()) && in getWithMultiVersionIndex()
111 !isa<CXXDestructorDecl>(getDecl()) && in getWithMultiVersionIndex()
H A DDeclAccessPair.h42 NamedDecl *getDecl() const { in getDecl() function
53 set(getDecl(), AS); in setAccess()
59 operator NamedDecl*() const { return getDecl(); }
60 NamedDecl *operator->() const { return getDecl(); }
H A DUnresolvedSet.h50 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() function
56 NamedDecl *operator*() const { return getDecl(); }
102 if (I->getDecl() == Old) in replace()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp137 if (!getDecl()) in hasNonNullArgumentsWithType()
171 const Decl *D = getDecl(); in getCalleeAnalysisDeclContext()
181 if (!RD.getDecl()) in getCalleeAnalysisDeclContext()
189 if (RD.mayHaveOtherDefinitions() || RD.getDecl() != ADC->getDecl()) in getCalleeAnalysisDeclContext()
234 const Decl *D = SFC->getDecl(); in getParameterLocation()
347 const Decl *D = getDecl(); in getProgramPoint()
369 const Decl *D = getDecl(); in isCalled()
432 if (const Decl *D = getDecl()) { in dump()
525 const FunctionDecl *D = getDecl(); in parameters()
711 const Decl *D = getDecl(); in getRuntimeDefinition()
[all …]
H A DMemRegion.cpp183 if (getDecl()->isBitField()) in getExtent()
221 return getDecl()->getType(); in getValueType()
510 os << superRegion << "->" << *getDecl(); in dumpToStream()
609 os << getDecl()->getName(); in printPrettyAsExpr()
617 os << getDecl()->getName(); in printPrettyAsExpr()
631 os << "." << getDecl()->getName(); in printPrettyAsExpr()
706 return FR->getDecl()->getSourceRange(); in sourceRange()
836 if (VR->getDecl() == VD) in getStackOrCaptureRegionForDeclContext()
898 const Decl *STCD = STC->getDecl(); in getVarRegion()
942 const BlockDecl *BD = BC->getDecl(); in getBlockDataRegion()
[all …]
H A DCheckerHelpers.cpp41 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
56 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal()
90 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment()
H A DSVals.cpp67 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()
178 const DeclaratorDecl *nonloc::PointerToMember::getDecl() const { in getDecl() function in nonloc::PointerToMember
348 if (CastRes.getDecl()) in dumpToStream()
349 os << "|" << CastRes.getDecl()->getQualifiedNameAsString() << "|"; in dumpToStream()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp215 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar()
287 assert(drInc->getDecl()); in checkLoopConditionForFloat()
294 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat()
345 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcmp, in checkCall_bcmp()
387 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bcopy, in checkCall_bcopy()
428 BR.EmitBasicReport(AC->getDecl(), filter.checkName_bzero, in checkCall_bzero()
466 BR.EmitBasicReport(AC->getDecl(), filter.checkName_gets, in checkCall_gets()
506 BR.EmitBasicReport(AC->getDecl(), filter.checkName_getpw, in checkCall_getpw()
547 BR.EmitBasicReport(AC->getDecl(), filter.checkName_mktemp, in checkCall_mktemp()
796 BR.EmitBasicReport(AC->getDecl(), filter.checkName_rand, in checkCall_random()
[all …]
H A DDeadStoresChecker.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
205 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(), in Report()
232 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
249 if (DR->getDecl() == VD) in isIncrement()
253 if (DR->getDecl() == VD) in isIncrement()
274 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
292 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
362 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
419 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
H A DIdenticalExprChecker.cpp72 BR.EmitBasicReport(AC->getDecl(), Checker, in reportIdenticalExpr()
121 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt()
144 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt()
174 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitIfStmt()
233 if (DeclRef1->getDecl() == DeclRef2->getDecl()) { in checkComparisonOp()
265 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp()
287 AC->getDecl(), Checker, in VisitConditionalOperator()
463 return DeclRef1->getDecl() == DeclRef2->getDecl(); in isIdenticalStmt()
H A DObjCSelfInitChecker.cpp174 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostObjCMessage()
201 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostStmt()
214 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreStmt()
242 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreCall()
270 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostCall()
305 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkLocation()
420 return (DR->getDecl() == analCtx->getSelfDecl()); in isSelfVar()
H A DVirtualCallChecker.cpp96 dyn_cast_or_null<CXXConstructorDecl>(LCtx->getDecl()); in REGISTER_MAP_WITH_PROGRAMSTATE()
98 dyn_cast_or_null<CXXDestructorDecl>(LCtx->getDecl()); in REGISTER_MAP_WITH_PROGRAMSTATE()
105 const auto *MD = dyn_cast<CXXMethodDecl>(LCtx->getDecl()); in REGISTER_MAP_WITH_PROGRAMSTATE()
179 const CXXMethodDecl *MD = dyn_cast_or_null<CXXMethodDecl>(Call.getDecl()); in checkPreCall()
222 const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl()); in registerCtorDtorCallInState()
H A DNonnullGlobalConstantsChecker.cpp99 const VarDecl *Decl = Region->getDecl(); in isGlobalConstString()
111 Ty = T->getDecl()->getUnderlyingType(); in isGlobalConstString()
132 IdentifierInfo* II = T->getDecl()->getIdentifier(); in isNonnullType()
H A DBoolAssignmentChecker.cpp47 return TT->getDecl()->getName() == "BOOL" || // Objective-C in isBooleanType()
48 TT->getDecl()->getName() == "_Bool" || // stdbool.h < C99 in isBooleanType()
49 TT->getDecl()->getName() == "Boolean"; // MacTypes.h in isBooleanType()
H A DCastToStructChecker.cpp67 AC->getDecl(), Checker, "Cast from non-struct type to struct type", in VisitCastExpr()
81 VD = SE->getDecl(); in VisitCastExpr()
98 BR.EmitBasicReport(AC->getDecl(), Checker, "Widening cast to struct type", in VisitCastExpr()
H A DMacOSXAPIChecker.cpp97 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 DMallocOverflowSecurityChecker.cpp144 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() function in __anonf83584360211::CheckOverflowOps
145 static const Decl *getDecl(const MemberExpr *ME) { in getDecl() function in __anonf83584360211::CheckOverflowOps
154 return getDecl(CheckDR) == getDecl(DR) && Pred(Check); in Erase()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedPointee.cpp48 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()
104 Out << getVariableName(getDecl()); in printNode()
144 assert((isDereferencableType(FR->getDecl()->getType()) || in isDereferencableUninit()
234 bool NeedsCastBack = isVoidPointer(FR->getDecl()->getType()) || in dereference()
H A DUninitializedObjectChecker.cpp65 Out << getVariableName(getDecl()); in printNode()
130 Context.getLocationContext()->getDecl()); in checkEndFunction()
180 Node->getLocationContext()->getDecl()); in checkEndFunction()
194 Node->getLocationContext()->getDecl()); in checkEndFunction()
198 PathDiagnosticLocation::create(Pair.first->getDecl(), in checkEndFunction()
234 assert((PointeeR || !isDereferencableType(FR->getDecl()->getType())) && in addFieldToUninits()
251 FR->getDecl()->getLocation())) in addFieldToUninits()
468 const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl()); in willObjectBeAnalyzedLater()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DType.cpp524 if (RT->getDecl()->isStruct()) in getAsStructureType()
543 if (RT->getDecl()->isUnion()) in getAsUnionType()
549 if (!RT->getDecl()->isUnion()) in getAsUnionType()
1623 return TT->getDecl(); in getAsTagDecl()
1625 return Injected->getDecl(); in getAsTagDecl()
1782 return ET->getDecl()->isComplete() && !ET->getDecl()->isScoped(); in isIntegralOrUnscopedEnumerationType()
1853 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isSignedIntegerType()
1893 if (ET->getDecl()->isComplete() && !ET->getDecl()->isScoped()) in isUnsignedIntegerType()
1948 return ET->getDecl()->isComplete() && !ET->getDecl()->isScoped(); in isRealType()
1963 return !ET->getDecl()->isScoped() && ET->getDecl()->isComplete(); in isArithmeticType()
[all …]
H A DCXXInheritance.cpp288 BaseRecord = cast<CXXRecordDecl>(RT->getDecl()); in lookupInBases()
305 BaseSpec.getType()->castAs<RecordType>()->getDecl()); in lookupInBases()
371 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
383 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
402 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass()
412 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass()
420 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindTagMember()
450 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindOrdinaryMember()
463 return findOrdinaryMember(RT->getDecl(), Path, Name); in FindOrdinaryMemberInDependentClasses()
479 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindOMPReductionMember()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h150 const Decl *getDecl() { return D; } in getDecl() function
235 virtual const Decl *getDecl() const { in getDecl() function
268 const Decl *D = getDecl(); in isInSystemHeader()
506 const FunctionDecl *getDecl() const override { in getDecl() function
546 const FunctionDecl *getDecl() const override;
594 const BlockDecl *getDecl() const override { in getDecl() function
598 return BR->getDecl(); in getDecl()
602 const BlockDecl *BD = getDecl(); in isConversionFromLambda()
624 return RuntimeDefinition(getDecl()); in getRuntimeDefinition()
690 const FunctionDecl *getDecl() const override;
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Checkers/
H A DSValExplainer.h95 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue()
183 const VarDecl *VD = R->getDecl(); in VisitVarRegion()
200 return "instance variable '" + R->getDecl()->getNameAsString() + "' of " + in VisitObjCIvarRegion()
205 return "field '" + R->getDecl()->getNameAsString() + "' of " + in VisitFieldRegion()
215 return "base object '" + R->getDecl()->getQualifiedNameAsString() + in VisitCXXBaseObjectRegion()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DScopeInfo.cpp77 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
88 D = IE->getDecl(); in getBaseInfo()
156 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy()
162 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy()
209 if (isa<VarDecl>(DRE->getDecl())) in markSafeWeakUse()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DUninitializedValues.cpp292 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon80f980e50411::FindVarResult
316 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
347 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs()
363 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
379 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
538 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar()
542 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar()
753 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
756 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
759 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
[all …]

1234567891011