Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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.cpp103 SwitchStmt, enumerator
505 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL()
836 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
H A DCGStmt.cpp162 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
2016 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
2125 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
H A DCodeGenFunction.cpp1620 if (isa<SwitchStmt>(S)) in ContainsLabel()
1640 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
1662 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1053 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
1074 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt
1081 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
1088 alignof(SwitchStmt)); in Create()
1089 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create()
1092 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty()
1096 alignof(SwitchStmt)); in CreateEmpty()
1097 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty()
1100 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable()
1107 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp211 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp44 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp346 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
350 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
708 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h569 const SwitchStmt *getSwitch() const { in getSwitch()
570 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp151 if (isa<SwitchStmt>(T)) { in printJson()
H A DCFG.cpp625 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
2399 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
4329 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
5394 if (const SwitchStmt *S = in FilterEdge()
5395 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge()
5462 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
5573 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
6303 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
H A DReachableCode.cpp299 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
H A DUninitializedValues.cpp644 if (isa<SwitchStmt>(Term)) { in getUninitUse()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DErrnoChecker.cpp95 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h59 class SwitchStmt; variable
205 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h209 friend class SwitchStmt;
2392 class SwitchStmt final : public Stmt,
2393 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2433 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond,
2437 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar);
2441 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var,
2447 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit,
2504 return const_cast<SwitchStmt *>(this)->getConditionVariable();
H A DTextNodeDumper.h258 void VisitSwitchStmt(const SwitchStmt *Node);
H A DJSONNodeDumper.h334 void VisitSwitchStmt(const SwitchStmt *SS);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp237 if (const auto *SS = dyn_cast<SwitchStmt>(S)) { in isPossiblyEscaped()
H A DCoreEngine.cpp406 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DPtrTypesSemantics.cpp344 bool VisitSwitchStmt(const SwitchStmt *SS) { return VisitChildren(SS); } in VisitSwitchStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DStmtNodes.td13 def SwitchStmt : StmtNode<Stmt>;
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.h209 bool visitSwitchStmt(const SwitchStmt *S);
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2328 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
5591 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5608 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument
7884 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument

12