Searched refs:SwitchStmt (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) {
75 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) {
143 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) {
H A DCodeGenPGO.cpp98 SwitchStmt,
273 return PGOHash::SwitchStmt;
604 void VisitSwitchStmt(const SwitchStmt *S) {
H A DCGStmt.cpp150 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break;
1576 static bool FindCaseStatementsForValue(const SwitchStmt &S,
1629 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) {
H A DCodeGenFunction.cpp1373 if (isa<SwitchStmt>(S))
1393 if (isa<SwitchStmt>(S) || isa<WhileStmt>(S) || isa<DoStmt>(S) ||
1415 if (isa<IfStmt>(S) || isa<SwitchStmt>(S) || isa<WhileStmt>(S) ||
H A DCoverageMappingGen.cpp1121 void VisitSwitchStmt(const SwitchStmt *S) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp43 if(const auto *Switch = dyn_cast<SwitchStmt>(S))
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp949 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, function in class:SwitchStmt
968 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) function in class:SwitchStmt
975 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var,
981 alignof(SwitchStmt));
982 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond);
985 SwitchStmt *SwitchStmt
[all...]
H A DParentMap.cpp207 return DirectChild == cast<SwitchStmt>(P)->getCond();
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp339 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) {
343 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) {
644 SwitchStmt *SS = cast<SwitchStmt>(Jump);
H A DSemaStmt.cpp764 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr);
864 SwitchStmt *SS = cast<SwitchStmt>(Switch);
1658 void VisitSwitchStmt(const SwitchStmt* S) {
H A DAnalysisBasedWarnings.cpp1104 if (Term && isa<SwitchStmt>(Term))
1173 bool VisitSwitchStmt(SwitchStmt *S) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) {
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp151 if (isa<SwitchStmt>(T)) {
152 Out << "SwitchStmt\", \"case\": ";
H A DReachableCode.cpp297 if (isa<SwitchStmt>(Term))
H A DCFG.cpp605 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
2325 return VisitSwitchStmt(cast<SwitchStmt>(S));
4044 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) {
4135 // If the SwitchStmt contains a condition variable, add both the
4136 // SwitchStmt and the condition variable initialization to the CFG.
4146 // Finally, if the SwitchStmt contains a C++17 init-stmt, add it to the CFG.
5098 if (const SwitchStmt *S =
5099 dyn_cast_or_null<SwitchStmt>(From->getTerminatorStmt())) {
5166 cast<SwitchStmt>(stmt)->getConditionVariable();
5277 void VisitSwitchStmt(SwitchStmt *Terminato
[all...]
H A DUninitializedValues.cpp651 if (isa<SwitchStmt>(Term)) {
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h180 friend class SwitchStmt;
184 /// True if the SwitchStmt has storage for an init statement.
187 /// True if the SwitchStmt has storage for a condition variable.
190 /// If the SwitchStmt is a switch on an enum value, records whether all
1496 /// used by SwitchStmt.
2074 /// SwitchStmt - This represents a 'switch' stmt.
2075 class SwitchStmt final : public Stmt,
2076 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2082 // SwitchStmt is followed by several trailing objects,
2114 SwitchStmt(cons
[all...]
H A DJSONNodeDumper.h310 void VisitSwitchStmt(const SwitchStmt *SS);
H A DTextNodeDumper.h242 void VisitSwitchStmt(const SwitchStmt *Node);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h59 class SwitchStmt;
182 /// A SwitchStmt, along with a flag indicating if its list of case statements
184 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h560 const SwitchStmt *getSwitch() const {
561 return cast<SwitchStmt>(Src->getTerminator());
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2151 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
4612 AST_POLYMORPHIC_SUPPORTED_TYPES(IfStmt, SwitchStmt,
4629 SwitchStmt, AbstractConditionalOperator),
6583 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>,
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp388 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(),
/freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp860 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp1012 bool WalkUpFromSwitchStmt(SwitchStmt *S) {

Completed in 238 milliseconds

12