Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DVarBypassDetector.cpp70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
75 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
143 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
H A DCodeGenPGO.cpp99 SwitchStmt, enumerator
289 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL()
620 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
H A DCGStmt.cpp156 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
1819 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
1928 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
H A DCodeGenFunction.cpp1517 if (isa<SwitchStmt>(S)) in ContainsLabel()
1537 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
1559 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DStmt.cpp1051 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
1072 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt
1079 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
1086 alignof(SwitchStmt)); in Create()
1087 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create()
1090 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty()
1094 alignof(SwitchStmt)); in CreateEmpty()
1095 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty()
1098 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable()
1105 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp208 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp44 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DJumpDiagnostics.cpp349 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
353 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
679 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
H A DSemaStmt.cpp1115 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
1216 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt()
2011 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
H A DAnalysisBasedWarnings.cpp1107 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock()
1174 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h573 const SwitchStmt *getSwitch() const { in getSwitch()
574 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/openbsd-src/gnu/llvm/clang/lib/Analysis/
H A DProgramPoint.cpp151 if (isa<SwitchStmt>(T)) { in printJson()
H A DCFG.cpp612 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
2395 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
4323 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
5388 if (const SwitchStmt *S = in FilterEdge()
5389 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge()
5456 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
5567 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
6291 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
H A DReachableCode.cpp297 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
H A DUninitializedValues.cpp648 if (isa<SwitchStmt>(Term)) { in getUninitUse()
H A DCalledOnceCheck.cpp528 std::optional<Clarification> VisitSwitchStmt(const SwitchStmt *Switch) { in VisitSwitchStmt()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DErrnoChecker.cpp95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
/openbsd-src/gnu/llvm/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DScopeInfo.h59 class SwitchStmt; variable
196 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DStmt.h185 friend class SwitchStmt; variable
2194 class SwitchStmt final : public Stmt,
2195 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2235 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond,
2239 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar);
2243 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var,
2249 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit,
2306 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
H A DTextNodeDumper.h244 void VisitSwitchStmt(const SwitchStmt *Node);
H A DJSONNodeDumper.h320 void VisitSwitchStmt(const SwitchStmt *SS);
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DStmtNodes.td13 def SwitchStmt : StmtNode<Stmt>;
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2265 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
5329 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5346 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument
7578 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp418 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()

12