Home
last modified time | relevance | path

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

12

/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDJumpDiagnostics.cpp305 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
546 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
HDSemaStmt.cpp661 SwitchStmt *SS = new (Context) SwitchStmt(Context, ConditionVar, Cond); in ActOnStartOfSwitchStmt()
730 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt()
HDAnalysisBasedWarnings.cpp950 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock()
1015 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/NextBSD/contrib/llvm/tools/clang/include/clang/Sema/
HDScopeInfo.h41 class SwitchStmt; variable
138 SmallVector<SwitchStmt*, 8> SwitchStack;
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDCoreEngine.h525 const SwitchStmt *getSwitch() const { in getSwitch()
526 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCodeGenPGO.cpp119 SwitchStmt, enumerator
207 return PGOHash::SwitchStmt; in getHashType()
491 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
HDCGStmt.cpp138 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
1460 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
1513 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
HDCodeGenFunction.cpp970 if (isa<SwitchStmt>(S)) in ContainsLabel()
990 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
HDCoverageMappingGen.cpp753 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
HDCGStmtOpenMP.cpp1260 auto *SwitchStmt = CGF.Builder.CreateSwitch( in EmitSections() local
1267 SwitchStmt->addCase(CGF.Builder.getInt32(CaseNumber), CaseBB); in EmitSections()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDParentMap.cpp193 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
HDStmt.cpp944 SwitchStmt::SwitchStmt(const ASTContext &C, VarDecl *Var, Expr *cond) in SwitchStmt() function in SwitchStmt
951 VarDecl *SwitchStmt::getConditionVariable() const { in getConditionVariable()
959 void SwitchStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
HDStmtProfile.cpp121 void StmtProfiler::VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
HDASTImporter.cpp185 Stmt *VisitSwitchStmt(SwitchStmt *S);
4715 Stmt *ASTNodeImporter::VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
4726 SwitchStmt *ToStmt = new (Importer.getToContext()) SwitchStmt( in VisitSwitchStmt()
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDCFG.cpp407 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
1551 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
2987 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
3879 if (const SwitchStmt *S = in FilterEdge()
3880 dyn_cast_or_null<SwitchStmt>(From->getTerminator().getStmt())) { in FilterEdge()
3945 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
4059 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
4510 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
HDReachableCode.cpp255 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
HDUninitializedValues.cpp652 if (isa<SwitchStmt>(Term)) { in getUninitUse()
/NextBSD/contrib/llvm/tools/clang/include/clang/Basic/
HDStmtNodes.td17 def SwitchStmt : Stmt;
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDStmt.h48 class SwitchStmt; variable
951 class SwitchStmt : public Stmt {
962 SwitchStmt(const ASTContext &C, VarDecl *Var, Expr *cond);
965 explicit SwitchStmt(EmptyShell Empty) : Stmt(SwitchStmtClass, Empty) { } in SwitchStmt() function
/NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchers.h1284 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
4029 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDCoreEngine.cpp439 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
HDExprEngine.cpp1828 const SwitchStmt *SS = builder.getSwitch(); in processSwitch()
2547 if (isa<SwitchStmt>(T)) { in getNodeLabel()
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
HDRewriteObjC.cpp4588 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in RewriteFunctionBodyOrGlobalInitializer()
4754 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in RewriteFunctionBodyOrGlobalInitializer()
4757 assert ((isa<SwitchStmt>(Stmts.back()) || isa<WhileStmt>(Stmts.back()) || in RewriteFunctionBodyOrGlobalInitializer()
/NextBSD/contrib/llvm/tools/clang/lib/Serialization/
HDASTReaderStmt.cpp195 void ASTStmtReader::VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
2387 S = new (Context) SwitchStmt(Empty); in ReadStmtFromStream()

12