Lines Matching refs:dyn_cast
57 if (const VarDecl *D = dyn_cast<VarDecl>(DR->getDecl())) in VisitDeclRefExpr()
107 dyn_cast<BinaryOperator>(Ex->IgnoreParenCasts()); in LookThroughTransitiveAssignmentsAndCommaOperators()
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef()
297 const BinaryOperator* BRHS = dyn_cast<BinaryOperator>(RHS); in isIncrement()
304 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getLHS()->IgnoreParenCasts()))) in isIncrement()
308 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
326 if (const BinaryOperator* B = dyn_cast<BinaryOperator>(S)) { in observeStmt()
329 if (DeclRefExpr *DR = dyn_cast<DeclRefExpr>(B->getLHS())) in observeStmt()
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt()
347 if (const DeclRefExpr *RhsDR = dyn_cast<DeclRefExpr>(RHS)) in observeStmt()
348 if (VD == dyn_cast<VarDecl>(RhsDR->getDecl())) in observeStmt()
359 else if (const UnaryOperator* U = dyn_cast<UnaryOperator>(S)) { in observeStmt()
369 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(Ex)) in observeStmt()
372 else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) in observeStmt()
376 const auto *V = dyn_cast<VarDecl>(DI); in observeStmt()
388 while (const FullExpr *FE = dyn_cast<FullExpr>(E)) in observeStmt()
419 dyn_cast<DeclRefExpr>(E->IgnoreParenCasts())) in observeStmt()
420 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt()
464 if (const auto *ILE = dyn_cast<InitListExpr>(E->IgnoreParenCasts())) { in isConstant()
487 if (auto *LE = dyn_cast<LambdaExpr>(S)) { in operator ()()
492 const UnaryOperator *U = dyn_cast<UnaryOperator>(S); in operator ()()
499 if (const DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E)) in operator ()()
500 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()()
540 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) in checkASTCodeBody()