Home
last modified time | relevance | path

Searched refs:LabelStmt (Results 1 – 25 of 42) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/CodeGen/
H A DVarBypassDetector.cpp119 else if (const LabelStmt *LS = dyn_cast<LabelStmt>(SubStmt)) in BuildScopeInformation()
141 if (const LabelStmt *LS = GS->getLabel()->getStmt()) in Detect()
H A DCodeGenPGO.cpp92 LabelStmt = 1, enumerator
276 return PGOHash::LabelStmt; in DEFINE_NESTABLE_TRAVERSAL()
463 void VisitLabelStmt(const LabelStmt *S) { in VisitLabelStmt()
H A DCGStmt.cpp444 EmitLabelStmt(cast<LabelStmt>(*S)); in EmitSimpleStmt()
504 if (const auto *LS = dyn_cast<LabelStmt>(ExprResult)) { in EmitCompoundStmtWithoutScope()
685 void CodeGenFunction::EmitLabelStmt(const LabelStmt &S) { in EmitLabelStmt()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCXCursor.h31 class LabelStmt; variable
207 CXCursor MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc,
212 std::pair<const LabelStmt *, SourceLocation> getCursorLabelRef(CXCursor C);
H A DCXCursor.cpp1084 CXCursor cxcursor::MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc, in MakeCursorLabelRef()
1093 std::pair<const LabelStmt *, SourceLocation>
1096 return std::make_pair(static_cast<const LabelStmt *>(C.data[0]), in getCursorLabelRef()
H A DCIndex.cpp3355 if (LabelStmt *stmt = LS->getStmt()) { in RunVisitorWorkList()
4871 const LabelStmt *Label = getCursorLabelRef(C).first; in clang_getCursorSpelling()
4930 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S)) in clang_getCursorSpelling()
4989 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S)) { in clang_Cursor_getSpellingNameRange()
6260 std::pair<const LabelStmt *, SourceLocation> P = getCursorLabelRef(C); in clang_getCursorLocation()
6553 if (LabelStmt *labelS = label->getStmt()) in clang_getCursorReferenced()
/llvm-project-15.0.7/clang/lib/Sema/
H A DJumpDiagnostics.cpp636 else if (LabelStmt *LS = dyn_cast<LabelStmt>(SubStmt)) in BuildScopeInformation()
973 assert(isa<LabelStmt>(To)); in CheckJump()
974 LabelStmt *Label = cast<LabelStmt>(To); in CheckJump()
H A DSemaStmt.cpp220 if (const LabelStmt *Label = dyn_cast_or_null<LabelStmt>(S)) in DiagnoseUnusedExprResult()
569 LabelStmt *LS = new (Context) LabelStmt(IdentLoc, TheDecl, SubStmt); in ActOnLabelStmt()
H A DAnalysisBasedWarnings.cpp1110 const LabelStmt *L = dyn_cast_or_null<LabelStmt>(P->getLabel()); in checkFallThroughIntoBlock()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp116 class LabelDeclRangeVerifier : public RangeVerifier<LabelStmt> {
118 SourceRange getRange(const LabelStmt &Node) override { in getRange()
129 TEST(LabelStmt, Range) { in TEST() argument
130 RangeVerifier<LabelStmt> Verifier; in TEST()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp90 while (Parent && (isa<SwitchCase>(Parent) || isa<LabelStmt>(Parent))) in getCaseParent()
H A DTransforms.cpp288 while (auto *Label = dyn_cast<LabelStmt>(S)) in mark()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSimplifyBooleanExprCheck.cpp483 } else if (isa<LabelStmt, CaseStmt, DefaultStmt>(*First)) { in VisitCompoundStmt()
489 isa<LabelStmt>(*First) ? cast<LabelStmt>(*First)->getSubStmt() in VisitCompoundStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtDataCollectors.td151 class LabelStmt {
H A DTextNodeDumper.h246 void VisitLabelStmt(const LabelStmt *Node);
H A DJSONNodeDumper.h317 void VisitLabelStmt(const LabelStmt *LS);
H A DDecl.h63 class LabelStmt; variable
495 LabelStmt *TheStmt;
505 LabelStmt *S, SourceLocation StartL) in LabelDecl()
518 LabelStmt *getStmt() const { return TheStmt; } in getStmt()
519 void setStmt(LabelStmt *T) { TheStmt = T; } in setStmt()
H A DStmt.h140 friend class LabelStmt; in alignas() local
1831 class LabelStmt : public ValueStmt {
1838 LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt) in LabelStmt() function
1844 explicit LabelStmt(EmptyShell Empty) : ValueStmt(LabelStmtClass, Empty) {} in LabelStmt() function
/llvm-project-15.0.7/clang/lib/AST/
H A DStmt.cpp220 if (const auto *LS = dyn_cast<LabelStmt>(S)) in stripLabelLikeStatements()
408 if (const auto *LS = dyn_cast<LabelStmt>(S)) in getExprStmt()
419 const char *LabelStmt::getName() const { in getName()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindTarget.cpp297 void VisitLabelStmt(const LabelStmt *Label) { in add()
809 void VisitLabelStmt(const LabelStmt *LS) { in refInStmt()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DCoreEngine.h508 return cast<LabelStmt>((*I)->getLabel())->getDecl(); in getLabel()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DStmtNodes.td31 def LabelStmt : StmtNode<ValueStmt>;
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp581 CFGBlock *VisitLabelStmt(LabelStmt *L);
2265 return VisitLabelStmt(cast<LabelStmt>(S)); in Visit()
3322 CFGBlock *CFGBuilder::VisitLabelStmt(LabelStmt *L) { in VisitLabelStmt()
5867 if (LabelStmt *L = dyn_cast<LabelStmt>(Label)) in print_block()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1147 bool matchesSpecialized(const LabelStmt &Node, ASTMatchFinder *Finder,
1218 ElaboratedType, InjectedClassNameType, LabelStmt, AddrLabelExpr,
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp905 const internal::VariadicDynCastAllOfMatcher<Stmt, LabelStmt> labelStmt;

12