Lines Matching refs:dyn_cast

56       if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl()))  in VisitDeclRefExpr()
106 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators()
231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
240 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS); in isIncrement()
247 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
251 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
269 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) { in observeStmt()
272 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
273 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
288 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
289 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
300 else if (const UnaryOperator* U = dyn_cast<UnaryOperator>(S)) { in observeStmt()
310 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
313 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt()
317 const auto *V = dyn_cast<VarDecl>(DI); in observeStmt()
330 dyn_cast<ExprWithCleanups>(E)) in observeStmt()
359 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt()
360 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
404 const UnaryOperator *U = dyn_cast<UnaryOperator>(S); in operator ()()
411 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in operator ()()
412 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
433 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) in checkASTCodeBody()