Home
last modified time | relevance | path

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

123456789

/minix3/external/bsd/llvm/dist/clang/include/clang/AST/
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 DGlobalDecl.h60 const Decl *getDecl() const { return Value.getPointer(); } in getDecl() function
63 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType()
68 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType()
H A DUnresolvedSet.h53 NamedDecl *getDecl() const { return ir->getDecl(); } in getDecl() function
59 NamedDecl *operator*() const { return getDecl(); }
128 if (I->getDecl() == Old) in replace()
/minix3/external/bsd/llvm/dist/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp69 const Decl *PseudoConstantAnalysis::getDecl(const Expr *E) { in getDecl() function in PseudoConstantAnalysis
71 return DR->getDecl(); in getDecl()
96 const Decl *LHSDecl = getDecl(BO->getLHS()->IgnoreParenCasts()); in RunAnalysis()
107 const Decl *RHSDecl = getDecl(BO->getRHS()->IgnoreParenCasts()); in RunAnalysis()
142 const Decl *D = getDecl(UO->getSubExpr()->IgnoreParenCasts()); in RunAnalysis()
185 const Decl *D = getDecl(VD->getInit()->IgnoreParenCasts()); in RunAnalysis()
202 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in RunAnalysis()
H A DUninitializedValues.cpp273 const VarDecl *getDecl() const { return vd; } in getDecl() function in __anonee8ffdc90411::FindVarResult
295 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar()
324 ClassifyRefs(AnalysisDeclContext &AC) : DC(cast<DeclContext>(AC.getDecl())) {} in ClassifyRefs()
340 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get()
353 if (DRE && DRE->getDecl() == VD) in getSelfInitExpr()
486 return ::isTrackedVar(vd, cast<DeclContext>(ac.getDecl())); in isTrackedVar()
490 return ::findVar(ex, cast<DeclContext>(ac.getDecl())); in findVar()
701 reportUse(dr, cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
704 vals[cast<VarDecl>(dr->getDecl())] = Initialized; in VisitDeclRefExpr()
707 handler.handleSelfInit(cast<VarDecl>(dr->getDecl())); in VisitDeclRefExpr()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DType.cpp52 ND = ty->getAs<RecordType>()->getDecl(); in getBaseTypeIdentifier()
54 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
56 ND = ty->getAs<TypedefType>()->getDecl(); in getBaseTypeIdentifier()
367 return RT->getDecl()->isClass(); in isClassType()
372 return RT->getDecl()->isStruct(); in isStructureType()
377 return RT->getDecl()->isInterface(); in isInterfaceType()
382 RecordDecl *RD = RT->getDecl(); in isStructureOrClassType()
395 return RT->getDecl()->isUnion(); in isUnionType()
436 if (RT->getDecl()->isStruct()) in getAsStructureType()
442 if (!RT->getDecl()->isStruct()) in getAsStructureType()
[all …]
H A DCXXInheritance.cpp149 cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition()); in forallBases()
265 ->getDecl()); in lookupInBases()
330 VBase = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
345 HidingClass = cast<CXXRecordDecl>(Record->getDecl()); in lookupInBases()
371 return Specifier->getType()->castAs<RecordType>()->getDecl() in FindBaseClass()
381 Specifier->getType()->castAs<RecordType>()->getDecl() in FindVirtualBaseClass()
389 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindTagMember()
406 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindOrdinaryMember()
425 Specifier->getType()->castAs<RecordType>()->getDecl(); in FindNestedNameSpecifierMember()
498 const CXXRecordDecl *BaseDecl = cast<CXXRecordDecl>(RT->getDecl()); in Collect()
[all …]
H A DVTTBuilder.cpp65 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl()); in LayoutSecondaryVTTs()
91 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl()); in LayoutSecondaryVirtualPointers()
155 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl()); in LayoutVirtualVTTs()
/minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DCallEvent.cpp70 const RecordDecl *RD = RT->getDecl(); in isCallbackArg()
86 if (!getDecl()) in hasNonZeroCallbackArg()
104 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(getDecl()); in isGlobalCFunction()
143 if (const Decl *callee = getDecl()) in invalidateRegions()
186 const Decl *D = getDecl(); in getProgramPoint()
226 if (const Decl *D = getDecl()) { in dump()
312 const FunctionDecl *D = getDecl(); in parameters()
321 const FunctionDecl *D = cast<FunctionDecl>(CalleeCtx->getDecl()); in getInitialStackFrameContents()
331 const FunctionDecl *D = getDecl(); in argumentsMayEscape()
384 const FunctionDecl *SimpleFunctionCall::getDecl() const { in getDecl() function in SimpleFunctionCall
[all …]
H A DMemRegion.cpp199 if (getDecl()->isBitField()) in getExtent()
232 const ObjCIvarDecl *ObjCIvarRegion::getDecl() const { in getDecl() function in ObjCIvarRegion
237 return getDecl()->getType(); in getValueType()
241 return QualType(getDecl()->getTypeForDecl(), 0); in getValueType()
333 VarRegion::ProfileRegion(ID, getDecl(), superRegion); in Profile()
420 ProfileRegion(ID, getDecl(), isVirtual(), superRegion); in Profile()
461 os << "code{" << getDecl()->getDeclName().getAsString() << '}'; in dumpToStream()
490 os << "base{" << superRegion << ',' << getDecl()->getName() << '}'; in dumpToStream()
503 os << superRegion << "->" << *getDecl(); in dumpToStream()
507 os << "ivar{" << superRegion << ',' << *getDecl() << '}'; in dumpToStream()
[all …]
H A DCheckerHelpers.cpp38 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in containsStaticLocal()
/minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A 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 …]
H A 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()
289 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
360 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
412 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
H A DDynamicTypePropagation.cpp79 recordFixedType(Target, Ctor->getDecl(), C); in checkPreCall()
95 const Decl *D = Dtor->getDecl(); in checkPreCall()
115 const ObjCMethodDecl *D = Msg->getDecl(); in checkPostCall()
168 const Decl *D = C.getLocationContext()->getDecl(); in checkPostCall()
233 if (DRE->getDecl() == SFCtx->getSelfDecl()) { in getObjectTypeForAllocAndNew()
234 if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl())) in getObjectTypeForAllocAndNew()
H A DObjCSelfInitChecker.cpp175 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostObjCMessage()
202 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostStmt()
215 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreStmt()
243 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPreCall()
271 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkPostCall()
306 C.getCurrentAnalysisDeclContext()->getDecl()))) in checkLocation()
424 return (DR->getDecl() == analCtx->getSelfDecl()); in isSelfVar()
H A DIdenticalExprChecker.cpp72 BR.EmitBasicReport(AC->getDecl(), Checker, in reportIdenticalExpr()
126 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt()
156 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitIfStmt()
215 if (DeclRef1->getDecl() == DeclRef2->getDecl()) { in checkComparisonOp()
244 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp()
266 AC->getDecl(), Checker, in VisitConditionalOperator()
443 return DeclRef1->getDecl() == DeclRef2->getDecl(); in isIdenticalStmt()
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 DCStringSyntaxChecker.cpp42 return D1->getDecl() == D2->getDecl(); in sameDecl()
76 return D->getDecl()->getName(); in getPrintableName()
H A DNoReturnFunctionChecker.cpp45 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CE.getDecl())) in checkPostCall()
90 if (const ObjCMethodDecl *MD = Msg.getDecl()) { in checkPostObjCMessage()
/minix3/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCallEvent.h92 const Decl *getDecl() { return D; } in getDecl() function
177 virtual const Decl *getDecl() const { in getDecl() function
210 const Decl *D = getDecl(); in isInSystemHeader()
294 const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(getDecl()); in getCalleeIdentifier()
393 const FunctionDecl *getDecl() const override { in getDecl() function
394 return cast<FunctionDecl>(CallEvent::getDecl()); in getDecl()
398 const FunctionDecl *FD = getDecl(); in getRuntimeDefinition()
406 return RuntimeDefinition(AD->getDecl()); in getRuntimeDefinition()
446 const FunctionDecl *getDecl() const override;
493 const BlockDecl *getDecl() const override { in getDecl() function
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp182 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPFirstprivateClause()
183 auto *VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPFirstprivateClause()
192 auto VDInit = cast<VarDecl>(cast<DeclRefExpr>(*InitsRef)->getDecl()); in EmitOMPFirstprivateClause()
226 auto *OrigVD = cast<VarDecl>(cast<DeclRefExpr>(*IRef)->getDecl()); in EmitOMPPrivateClause()
227 auto VD = cast<VarDecl>(cast<DeclRefExpr>(IInit)->getDecl()); in EmitOMPPrivateClause()
353 if (LocalDeclMap.lookup(cast<DeclRefExpr>((*IC))->getDecl())) { in EmitOMPSimdFinal()
390 auto VD = cast<VarDecl>(cast<DeclRefExpr>(E)->getDecl()); in EmitPrivateLoopCounters()
458 const VarDecl *IVDecl = cast<VarDecl>(cast<DeclRefExpr>(IVExpr)->getDecl()); in EmitOMPSimdDirective()
466 EmitVarDecl(*cast<VarDecl>(LIExpr->getDecl())); in EmitOMPSimdDirective()
506 auto VDecl = cast<VarDecl>(Helper->getDecl()); in EmitOMPHelperVar()
[all …]
H A DCodeGenTBAA.cpp74 return TTy->getDecl()->hasAttr<MayAliasAttr>(); in TypeHasMayAlias()
78 if (TTy->getDecl()->hasAttr<MayAliasAttr>()) in TypeHasMayAlias()
152 if (!Features.CPlusPlus || !ETy->getDecl()->isExternallyVisible()) in getTBAAInfo()
179 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
230 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isTBAAPathStruct()
250 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getTBAAStructTypeInfo()
H A DCGCXX.cpp77 cast<CXXRecordDecl>(I.getType()->getAs<RecordType>()->getDecl()); in TryEmitBaseDestructorAsAlias()
128 if (AliasDecl.getDecl()->hasAttr<DLLExportAttr>() && in TryEmitDefinitionAsAlias()
159 !TargetDecl.getDecl()->hasAttr<AlwaysInlineAttr>())) { in TryEmitDefinitionAsAlias()
200 setAliasAttributes(cast<NamedDecl>(AliasDecl.getDecl()), Alias); in TryEmitDefinitionAsAlias()
289 const auto *RD = cast<CXXRecordDecl>(RT->getDecl()); in BuildAppleKextVirtualCall()
/minix3/external/bsd/llvm/dist/clang/lib/ARCMigrate/
H A DTransARCAssign.cpp50 if (declRef && isa<VarDecl>(declRef->getDecl())) { in VisitBinaryOperator()
55 VarDecl *var = cast<VarDecl>(declRef->getDecl()); in VisitBinaryOperator()
/minix3/external/bsd/llvm/dist/clang/lib/Sema/
H A DScopeInfo.cpp61 D = cast<DeclRefExpr>(E)->getDecl(); in getBaseInfo()
72 D = IE->getDecl(); in getBaseInfo()
138 : Base(nullptr, true), Property(DRE->getDecl()) { in WeakObjectProfileTy()
144 : Base(getBaseInfo(IvarE->getBase())), Property(IvarE->getDecl()) { in WeakObjectProfileTy()

123456789