Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DVarBypassDetector.cpp71 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
76 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
144 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
H A DCodeGenPGO.cpp97 SwitchStmt, enumerator
270 return PGOHash::SwitchStmt; in DEFINE_NESTABLE_TRAVERSAL()
601 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
H A DCGStmt.cpp148 case Stmt::SwitchStmtClass: EmitSwitchStmt(cast<SwitchStmt>(*S)); break; in EmitStmt()
1500 static bool FindCaseStatementsForValue(const SwitchStmt &S, in FindCaseStatementsForValue()
1553 void CodeGenFunction::EmitSwitchStmt(const SwitchStmt &S) { in EmitSwitchStmt()
H A 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()
H A DCoverageMappingGen.cpp1103 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DStmt.cpp921 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
940 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt
947 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
953 alignof(SwitchStmt)); in Create()
954 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond); in Create()
957 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty()
961 alignof(SwitchStmt)); in CreateEmpty()
962 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty()
965 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable()
972 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
H A DParentMap.cpp196 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
H A DTextNodeDumper.cpp635 void TextNodeDumper::VisitSwitchStmt(const SwitchStmt *Node) { in VisitSwitchStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DJumpDiagnostics.cpp326 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
330 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
615 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
H A DSemaStmt.cpp727 auto *SS = SwitchStmt::Create(Context, InitStmt, Cond.get().first, CondExpr); in ActOnStartOfSwitchStmt()
827 SwitchStmt *SS = cast<SwitchStmt>(Switch); in ActOnFinishSwitchStmt()
1623 void VisitSwitchStmt(const SwitchStmt* S) { in VisitSwitchStmt()
H A DAnalysisBasedWarnings.cpp1077 if (Term && isa<SwitchStmt>(Term)) in checkFallThroughIntoBlock()
1146 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h552 const SwitchStmt *getSwitch() const { in getSwitch()
553 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmt.h176 friend class SwitchStmt; in alignas() local
1886 class SwitchStmt final : public Stmt,
1887 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
1925 SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, Expr *Cond);
1928 explicit SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar);
1932 static SwitchStmt *Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var,
1937 static SwitchStmt *CreateEmpty(const ASTContext &Ctx, bool HasInit,
1994 return const_cast<SwitchStmt *>(this)->getConditionVariable(); in getConditionVariable()
H A DTextNodeDumper.h223 void VisitSwitchStmt(const SwitchStmt *Node);
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DScopeInfo.h58 class SwitchStmt; variable
181 using SwitchInfo = llvm::PointerIntPair<SwitchStmt*, 1, bool>;
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DProgramPoint.cpp155 if (isa<SwitchStmt>(T)) { in print()
H A DCFG.cpp581 CFGBlock *VisitSwitchStmt(SwitchStmt *S);
2182 return VisitSwitchStmt(cast<SwitchStmt>(S)); in Visit()
3813 CFGBlock *CFGBuilder::VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
4768 if (const SwitchStmt *S = in FilterEdge()
4769 dyn_cast_or_null<SwitchStmt>(From->getTerminator().getStmt())) { in FilterEdge()
4834 cast<SwitchStmt>(stmt)->getConditionVariable(); in StmtPrinterHelper()
4945 void VisitSwitchStmt(SwitchStmt *Terminator) { in VisitSwitchStmt()
5507 E = cast<SwitchStmt>(Terminator)->getCond(); in getTerminatorCondition()
H A DReachableCode.cpp296 if (isa<SwitchStmt>(Term)) in shouldTreatSuccessorsAsReachable()
H A DUninitializedValues.cpp670 if (isa<SwitchStmt>(Term)) { in getUninitUse()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DStmtNodes.td17 def SwitchStmt : Stmt;
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp371 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1998 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
4091 SwitchStmt, AbstractConditionalOperator), in AST_POLYMORPHIC_MATCHER_P() argument
5946 AST_MATCHER_P(SwitchStmt, forEachSwitchCase, internal::Matcher<SwitchCase>, in AST_MATCHER_P() argument
/freebsd-12.1/contrib/llvm/tools/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp706 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderStmt.cpp241 void ASTStmtReader::VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()
2393 S = SwitchStmt::CreateEmpty( in ReadStmtFromStream()

12