Home
last modified time | relevance | path

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

12345678910

/external/clang/lib/Analysis/
DPseudoConstantAnalysis.cpp67 const Decl *PseudoConstantAnalysis::getDecl(const Expr *E) { in getDecl() function in PseudoConstantAnalysis
69 return DR->getDecl(); in getDecl()
94 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); in RunAnalysis()
105 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts()); in RunAnalysis()
140 const Decl *D = getDecl(UO->getSubExpr()->IgnoreParenCasts()); in RunAnalysis()
183 const Decl *D = getDecl(VD->getInit()->IgnoreParenCasts()); in RunAnalysis()
200 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in RunAnalysis()
DUninitializedValues.cpp274 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anon3e74e5010411::FindVarResult
296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
325 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs()
341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
355 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
519 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar()
523 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar()
734 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
737 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
740 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp67 const RecordDecl *RD = RT->getDecl(); in isCallback()
93 if (!getDecl()) in hasNonNullArgumentsWithType()
122 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction()
161 if (const Decl *callee = getDecl()) in invalidateRegions()
204 const Decl *D = getDecl(); in getProgramPoint()
254 if (const Decl *D = getDecl()) { in dump()
340 const FunctionDecl *D = getDecl(); in parameters()
349 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
359 const FunctionDecl *D = getDecl(); in argumentsMayEscape()
412 const FunctionDecl *SimpleFunctionCall::getDecl() const { in getDecl() function in SimpleFunctionCall
[all …]
DMemRegion.cpp195 if (getDecl()->isBitField()) in getExtent()
228 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { in getDecl() function in ObjCIvarRegion
233 return getDecl()->getType(); in getValueType()
237 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType()
329 VarRegion::ProfileRegion(ID, getDecl(), superRegion); in Profile()
416 ProfileRegion(ID, getDecl(), isVirtual(), superRegion); in Profile()
457 os << "code{" << getDecl()->getDeclName().getAsString() << '}'; in dumpToStream()
486 os << "base{" << superRegion << ',' << getDecl()->getName() << '}'; in dumpToStream()
499 os << superRegion << "->" << *getDecl(); in dumpToStream()
503 os << "ivar{" << superRegion << ',' << *getDecl() << '}'; in dumpToStream()
[all …]
DCheckerHelpers.cpp37 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
52 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal()
86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl()); in parseAssignment()
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckSecuritySyntaxOnly.cpp204 const NamedDecl *ND = DR->getDecl(); in getIncrementedVar()
262 const VarDecl *vdLHS = drLHS ? dyn_cast<VarDecl>(drLHS->getDecl()) : nullptr; in checkLoopConditionForFloat()
263 const VarDecl *vdRHS = drRHS ? dyn_cast<VarDecl>(drRHS->getDecl()) : nullptr; in checkLoopConditionForFloat()
276 assert(drInc->getDecl()); in checkLoopConditionForFloat()
277 const DeclRefExpr *drCond = vdLHS == drInc->getDecl() ? drLHS : drRHS; in checkLoopConditionForFloat()
283 os << "Variable '" << drCond->getDecl()->getName() in checkLoopConditionForFloat()
294 BR.EmitBasicReport(AC->getDecl(), filter.checkName_FloatLoopCounter, in checkLoopConditionForFloat()
329 BR.EmitBasicReport(AC->getDecl(), filter.checkName_gets, in checkCall_gets()
369 BR.EmitBasicReport(AC->getDecl(), filter.checkName_getpw, in checkCall_getpw()
410 BR.EmitBasicReport(AC->getDecl(), filter.checkName_mktemp, in checkCall_mktemp()
[all …]
DDeadStoresChecker.cpp56 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
204 BR.EmitBasicReport(AC->getDecl(), Checker, BugType, "Dead store", os.str(), in Report()
231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
248 if (DR->getDecl() == VD) in isIncrement()
252 if (DR->getDecl() == VD) in isIncrement()
273 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
291 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 ()()
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()
262 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp()
284 AC->getDecl(), Checker, in VisitConditionalOperator()
460 return DeclRef1->getDecl() == DeclRef2->getDecl(); in isIdenticalStmt()
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()
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()
DMallocOverflowSecurityChecker.cpp144 static const Decl *getDecl(const DeclRefExpr *DR) { return DR->getDecl(); } in getDecl() function in __anon1bd4ffd20211::CheckOverflowOps
145 static const Decl *getDecl(const MemberExpr *ME) { in getDecl() function in __anon1bd4ffd20211::CheckOverflowOps
154 return getDecl(CheckDR) == getDecl(DR) && Pred(Check); in Erase()
/external/clang/include/clang/AST/
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(); }
DUnresolvedSet.h44 NamedDecl *getDecl() const { return I->getDecl(); } in getDecl() function
50 NamedDecl *operator*() const { return getDecl(); }
95 if (I->getDecl() == Old) in replace()
DGlobalDecl.h62 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function
65 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType()
70 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType()
/external/clang/lib/AST/
DCXXInheritance.cpp153 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in forallBases()
268 ->getDecl()); in lookupInBases()
330 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
342 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
361 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass()
371 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass()
379 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindTagMember()
395 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindOrdinaryMember()
412 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindOMPReductionMember()
428 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindNestedNameSpecifierMember()
[all …]
DType.cpp53 ND = ty->getAs<RecordType>()->getDecl(); in getBaseTypeIdentifier()
55 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
57 ND = ty->getAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier()
360 return RT->getDecl()->isClass(); in isClassType()
365 return RT->getDecl()->isStruct(); in isStructureType()
370 return RT->getDecl()->hasAttr<ObjCBoxableAttr>(); in isObjCBoxableRecordType()
375 return RT->getDecl()->isInterface(); in isInterfaceType()
380 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType()
393 return RT->getDecl()->isUnion(); in isUnionType()
434 if (RT->getDecl()->isStruct()) in getAsStructureType()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCallEvent.h117 const Decl *getDecl() { return D; } in getDecl() function
203 virtual const Decl *getDecl() const { in getDecl() function
236 const Decl *D = getDecl(); in isInSystemHeader()
334 const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(getDecl()); in getCalleeIdentifier()
433 const FunctionDecl *getDecl() const override { in getDecl() function
434 return cast<FunctionDecl>(CallEvent::getDecl()); in getDecl()
438 const FunctionDecl *FD = getDecl(); in getRuntimeDefinition()
446 return RuntimeDefinition(AD->getDecl()); in getRuntimeDefinition()
486 const FunctionDecl *getDecl() const override;
534 const BlockDecl *getDecl() const override { in getDecl() function
[all …]
/external/clang/lib/CodeGen/
DCodeGenTBAA.cpp78 return TTy->getDecl()->hasAttr<MayAliasAttr>(); in TypeHasMayAlias()
82 if (TTy->getDecl()->hasAttr<MayAliasAttr>()) in TypeHasMayAlias()
156 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTBAAInfo()
182 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
233 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isTBAAPathStruct()
253 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getTBAAStructTypeInfo()
DCGStmtOpenMP.cpp392 if (auto *DRD = dyn_cast<OMPDeclareReductionDecl>(DRE->getDecl())) in getReductionInit()
412 PrivateScope.addPrivate(cast<VarDecl>(LHSDRE->getDecl()), in emitInitWithReductionInitializer()
414 PrivateScope.addPrivate(cast<VarDecl>(RHSDRE->getDecl()), in emitInitWithReductionInitializer()
581 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl()); in EmitOMPFirstprivateClause()
589 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause()
604 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPFirstprivateClause()
605 auto *VDInit = cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl()); in EmitOMPFirstprivateClause()
674 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause()
676 auto VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPPrivateClause()
706 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPCopyinClause()
[all …]
DCodeGenTypes.cpp135 if (!isSafeToConvert(I.getType()->getAs<RecordType>()->getDecl(), in isSafeToConvert()
162 return isSafeToConvert(RT->getDecl(), CGT, AlreadyChecked); in isSafeToConvert()
216 return isSafeToConvert(RT->getDecl(), *this); in isFuncParamTypeConvertible()
322 ConvertRecordDeclType(RT->getDecl()); in ConvertFunctionType()
326 ConvertRecordDeclType(RT->getDecl()); in ConvertFunctionType()
386 return ConvertRecordDeclType(RT->getDecl()); in ConvertType()
590 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
694 ConvertRecordDeclType(I.getType()->getAs<RecordType>()->getDecl()); in ConvertRecordDeclType()
756 const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl()); in isZeroInitializable()
DCGVTables.cpp37 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GetAddrOfThunk()
66 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in setThunkProperties()
147 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
210 assert(!CurGD.getDecl() && "CurGD was already set!"); in StartThunk()
215 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in StartThunk()
256 assert(isa<CXXMethodDecl>(CurGD.getDecl()) && in EmitCallAndReturnForThunk()
258 const CXXMethodDecl *MD = cast<CXXMethodDecl>(CurGD.getDecl()); in EmitCallAndReturnForThunk()
465 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn); in emitThunk()
496 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in maybeEmitThunkForVTable()
507 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl(); in EmitThunks()
[all …]
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc179 if (std::get<0>(p) == E->getDecl()) { in VisitDeclRefExpr()
186 tuple<Decl *, int> pt = make_tuple(E->getDecl(), nb_derefs_); in VisitDeclRefExpr()
212 tuple<Decl *, int> pt = make_tuple(E->getDecl(), nb_derefs_); in VisitDeclRefExpr()
240 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in VisitCallExpr()
248 m_.insert(Ref->getDecl()); in VisitCallExpr()
289 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in assignsExtPtr()
294 if (m_.find(Ref->getDecl()) != m_.end()) { in assignsExtPtr()
588 if (base_expr->getDecl() == ctx_) { in IsContextMemberExpr()
752 if (SectionAttr *A = Ref->getDecl()->getAttr<SectionAttr>()) { in VisitCallExpr()
761 Path local_path({fe_.id(), Ref->getDecl()->getName()}); in VisitCallExpr()
[all …]
/external/clang/lib/Sema/
DScopeInfo.cpp67 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
78 D = IE->getDecl(); in getBaseInfo()
146 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy()
152 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy()
/external/clang/include/clang/StaticAnalyzer/Checkers/
DSValExplainer.h95 if (auto D = dyn_cast<ParmVarDecl>(V->getDecl())) in VisitSymbolRegionValue()
175 const VarDecl *VD = R->getDecl(); in VisitVarRegion()
190 return "field '" + R->getDecl()->getNameAsString() + "' of " + in VisitFieldRegion()
200 return "base object '" + R->getDecl()->getQualifiedNameAsString() + in VisitCXXBaseObjectRegion()
/external/clang/lib/ARCMigrate/
DTransAutoreleasePool.cpp58 if (DE->getDecl() == Dcl) in VisitObjCMessageExpr()
190 if (VarDecl *VD = dyn_cast<VarDecl>(dref->getDecl())) { in VisitCompoundStmt()
264 return checkRef(E->getLocation(), E->getDecl()->getLocation()); in VisitDeclRefExpr()
272 return checkRef(TL.getBeginLoc(), TL.getDecl()->getLocation()); in VisitTagTypeLoc()
381 if (dref->getDecl() == poolVar) in isPoolDrain()
398 return isNSAutoreleasePool(interT->getDecl()); in isNSAutoreleasePool()

12345678910