Home
last modified time | relevance | path

Searched refs:SwitchStmt (Results 1 – 25 of 37) sorted by relevance

12

/external/clang/lib/Sema/
DJumpDiagnostics.cpp308 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
549 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
DSemaStmt.cpp664 SwitchStmt *SS = new (Context) SwitchStmt(Context, ConditionVar, Cond); in ActOnStartOfSwitchStmt()
731 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt()
DAnalysisBasedWarnings.cpp961 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock()
1026 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/external/clang/lib/AST/
DStmt.cpp819 SwitchStmt::SwitchStmt(const ASTContext &C, VarDecl *Var, Expr *cond) in SwitchStmt() function in SwitchStmt
826 VarDecl *SwitchStmt::getConditionVariable() const { in getConditionVariable()
834 void SwitchStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
DParentMap.cpp193 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
DStmtProfile.cpp122 void StmtProfiler::VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
DASTImporter.cpp185 Stmt *VisitSwitchStmt(SwitchStmt *S);
4713 Stmt *ASTNodeImporter::VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
4724 SwitchStmt *ToStmt = new (Importer.getToContext()) SwitchStmt( in VisitSwitchStmt()
/external/clang/include/clang/Sema/
DScopeInfo.h41 class SwitchStmt; variable
141 SmallVector<SwitchStmt*, 8> SwitchStack;
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCoreEngine.h525 const SwitchStmt *getSwitch() const { in getSwitch()
526 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp81 SwitchStmt, enumerator
169 return PGOHash::SwitchStmt; in getHashType()
453 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
DCGStmt.cpp141 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
1370 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
1423 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
DCodeGenFunction.cpp1041 if (isa<SwitchStmt>(S)) in ContainsLabel()
1061 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
DCoverageMappingGen.cpp742 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
DCGStmtOpenMP.cpp1676 auto *SwitchStmt = CGF.Builder.CreateSwitch( in EmitSections() local
1683 SwitchStmt->addCase(CGF.Builder.getInt32(CaseNumber), CaseBB); in EmitSections()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/external/clang/lib/Analysis/
DCFG.cpp480 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
1597 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
3053 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
3945 if (const SwitchStmt *S = in FilterEdge()
3946 dyn_cast_or_null<SwitchStmt>(From->getTerminator().getStmt())) { in FilterEdge()
4011 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
4125 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
4577 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
DReachableCode.cpp255 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
DUninitializedValues.cpp652 if (isa<SwitchStmt>(Term)) { in getUninitUse()
/external/clang/include/clang/AST/
DStmt.h49 class SwitchStmt; variable
938 class SwitchStmt : public Stmt {
949 SwitchStmt(const ASTContext &C, VarDecl *Var, Expr *cond);
952 explicit SwitchStmt(EmptyShell Empty) : Stmt(SwitchStmtClass, Empty) { } in SwitchStmt() function
/external/clang/include/clang/Basic/
DStmtNodes.td17 def SwitchStmt : Stmt;
/external/v8/tools/gcmole/
Dgcmole.cc884 VISIT(SwitchStmt); in VisitStmt()
1039 DECL_VISIT_STMT(SwitchStmt) { in DECL_VISIT_STMT() argument
/external/clang/lib/StaticAnalyzer/Core/
DCoreEngine.cpp439 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
DExprEngine.cpp1846 const SwitchStmt *SS = builder.getSwitch(); in processSwitch()
2594 if (isa<SwitchStmt>(T)) { in getNodeLabel()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1368 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
4463 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp4577 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in RewriteFunctionBodyOrGlobalInitializer()
4743 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in RewriteFunctionBodyOrGlobalInitializer()
4746 assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) || in RewriteFunctionBodyOrGlobalInitializer()

12