Searched defs:DR (Results 1 - 16 of 16) sorted by relevance

/external/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp36 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); local
38 if (DR && isa<EnumConstantDecl>(DR->getDecl()))
52 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); local
54 if (DR)
55 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
H A DBugReporterVisitors.cpp240 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(RetE))
241 if (const DeclaratorDecl *DD = dyn_cast<DeclaratorDecl>(DR->getDecl()))
480 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) {
483 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
594 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Head)) {
595 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
742 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) {
743 const bool quotes = isa<VarDecl>(DR->getDecl());
748 if (const MemRegion *R = state->getLValue(cast<VarDecl>(DR->getDecl()),
760 Out << DR
919 VisitTrueTest(const Expr *Cond, const DeclRefExpr *DR, const bool tookTrue, BugReporterContext &BRC, BugReport &report, const ExplodedNode *N) argument
[all...]
/external/clang/include/clang/Analysis/Visitors/
H A DCFGRecStmtDeclVisitor.h41 void VisitDeclRefExpr(DeclRefExpr *DR) { argument
42 static_cast<ImplClass*>(this)->VisitDecl(DR->getDecl());
/external/clang/include/clang/Analysis/Analyses/
H A DLiveVariables.h68 virtual void observerKill(const DeclRefExpr *DR) {} argument
/external/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp70 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E))
71 return DR->getDecl();
202 const DeclRefExpr *DR = cast<DeclRefExpr>(Head); local
203 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
H A DAnalysisDeclContext.cpp375 void VisitDeclRefExpr(DeclRefExpr *DR) { argument
377 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
381 } else if (DR->refersToEnclosingLocal()) {
H A DLiveVariables.cpp214 void VisitDeclRefExpr(DeclRefExpr *DR);
347 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(LHS))
348 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
359 observer->observerKill(DR);
376 void TransferFunctions::VisitDeclRefExpr(DeclRefExpr *DR) { argument
377 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
378 if (!isAlwaysAlive(D) && LV.inAssignment.find(DR) == LV.inAssignment.end())
393 DeclRefExpr *DR = 0; local
400 else if ((DR = dyn_cast<DeclRefExpr>(cast<Expr>(element)->IgnoreParens()))) {
401 VD = cast<VarDecl>(DR
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDereferenceChecker.cpp62 const DeclRefExpr *DR = cast<DeclRefExpr>(Ex); local
63 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
66 Ranges.push_back(DR->getSourceRange());
144 if (const DeclRefExpr *DR =
146 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
H A DDeadStoresChecker.cpp56 bool VisitDeclRefExpr(DeclRefExpr *DR) { argument
58 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))
223 void CheckDeclRef(const DeclRefExpr *DR, const Expr *Val, DeadStoreKind dsk, argument
225 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
226 CheckVarDecl(VD, DR, Val, dsk, Live);
239 const DeclRefExpr *DR; local
241 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts())))
242 if (DR->getDecl() == VD)
245 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts())))
246 if (DR
[all...]
H A DIdempotentOperationChecker.cpp94 static bool isConstantOrPseudoConstant(const DeclRefExpr *DR,
498 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()); local
499 if (!DR)
502 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
704 const DeclRefExpr *DR,
707 if (DR->getType().isConstQualified())
711 if (isa<EnumConstantDecl>(DR->getDecl()))
714 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
731 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(S); local
733 if (DR)
703 isConstantOrPseudoConstant( const DeclRefExpr *DR, AnalysisDeclContext *AC) argument
[all...]
/external/qemu/hw/
H A Dgoldfish_pipe.c39 # define DR(...) D(__VA_ARGS__) macro
41 # define DR(...) (void)0 macro
1081 DR("%s: command=%d (0x%x)", __FUNCTION__, value, value);
1086 DR("%s: size=%d (0x%x)", __FUNCTION__, value, value);
1091 DR("%s: address=%d (0x%x)", __FUNCTION__, value, value);
1096 DR("%s: channel=%d (0x%x)", __FUNCTION__, value, value);
1150 DR("%s: REG_STATUS status=%d (0x%x)", __FUNCTION__, dev->status, dev->status);
1156 DR("%s: channel=0x%x wanted=%d", __FUNCTION__,
1168 DR("%s: no signaled channels", __FUNCTION__);
1172 DR("
[all...]
/external/clang/lib/Sema/
H A DSemaStmt.cpp2143 const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParens()); local
2144 if (!DR || DR->refersToEnclosingLocal())
2146 const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
H A DSemaChecking.cpp1329 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Arg)) {
1330 if (const ParmVarDecl *PV = dyn_cast<ParmVarDecl>(DR->getDecl())) {
1678 const DeclRefExpr *DR = cast<DeclRefExpr>(E); local
1682 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
1684 QualType T = DR->getType();
3468 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(stackE)) { //address of local var.
3471 << DR->getDecl()->getDeclName() << diagRange;
3540 DeclRefExpr *DR = cast<DeclRefExpr>(E); local
3542 if (VarDecl *V = dyn_cast<VarDecl>(DR->getDecl()))
3548 refVars.push_back(DR);
3695 DeclRefExpr *DR = cast<DeclRefExpr>(E); local
[all...]
/external/clang/tools/libclang/
H A DCIndex.cpp1939 void EnqueueVisitor::VisitDeclRefExpr(DeclRefExpr *DR) { argument
1940 if (DR->hasExplicitTemplateArgs()) {
1941 AddExplicitTemplateArgs(&DR->getExplicitTemplateArgs());
1943 WL.push_back(DeclRefExprParts(DR, Parent));
2249 DeclRefExpr *DR = cast<DeclRefExprParts>(&LI)->get(); local
2251 if (NestedNameSpecifierLoc QualifierLoc = DR->getQualifierLoc())
2255 if (VisitDeclarationNameInfo(DR->getNameInfo()))
/external/clang/lib/Rewrite/Frontend/
H A DRewriteObjC.cpp1532 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement()); local
1533 elementName = DR->getDecl()->getName();
1534 ValueDecl *VD = cast<ValueDecl>(DR->getDecl());
H A DRewriteModernObjC.cpp1685 DeclRefExpr *DR = cast<DeclRefExpr>(S->getElement()); local
1686 elementName = DR->getDecl()->getName();
1687 ValueDecl *VD = cast<ValueDecl>(DR->getDecl());

Completed in 525 milliseconds