Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/llvm-project/clang/lib/CodeGen/
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()
DCodeGenPGO.cpp98 SwitchStmt, enumerator
288 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL()
619 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
DCodeGenFunction.cpp1434 if (isa<SwitchStmt>(S)) in ContainsLabel()
1454 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) || in containsBreak()
1476 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) || in mightAddDeclToScope()
DCGStmt.cpp154 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
1726 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
1835 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DStmt.cpp1044 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
1065 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt
1072 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
1079 alignof(SwitchStmt)); in Create()
1080 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create()
1083 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty()
1087 alignof(SwitchStmt)); in CreateEmpty()
1088 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty()
1091 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable()
1098 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
DParentMap.cpp207 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp43 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DJumpDiagnostics.cpp349 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
353 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
674 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
DSemaStmt.cpp1078 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr, in ActOnStartOfSwitchStmt()
1179 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt()
1974 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
DAnalysisBasedWarnings.cpp1106 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock()
1175 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCoreEngine.h561 const SwitchStmt *getSwitch() const { in getSwitch()
562 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/freebsd-12-stable/contrib/llvm-project/clang/lib/ARCMigrate/
DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DProgramPoint.cpp151 if (isa<SwitchStmt>(T)) { in printJson()
DCFG.cpp605 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
2332 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
4051 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
5106 if (const SwitchStmt *S = in FilterEdge()
5107 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) { in FilterEdge()
5174 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
5285 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
6002 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
DReachableCode.cpp297 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
DUninitializedValues.cpp651 if (isa<SwitchStmt>(Term)) { in getUninitUse()
DCalledOnceCheck.cpp528 llvm::Optional<Clarification> VisitSwitchStmt(const SwitchStmt *Switch) { in VisitSwitchStmt()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DScopeInfo.h59 class SwitchStmt; variable
191 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DStmt.h180 friend class SwitchStmt; in alignas() local
2121 class SwitchStmt final : public Stmt,
2122 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2162 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond,
2166 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar);
2170 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var,
2176 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit,
2233 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
DTextNodeDumper.h244 void VisitSwitchStmt(const SwitchStmt *Node);
DJSONNodeDumper.h315 void VisitSwitchStmt(const SwitchStmt *SS);
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Basic/
DStmtNodes.td13 def SwitchStmt : StmtNode<Stmt>;
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h2251 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
5135 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt, in AST_POLYMORPHIC_MATCHER_P() argument
5152 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument
7172 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
DCoreEngine.cpp390 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
/freebsd-12-stable/contrib/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp893 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;

12