Home
last modified time | relevance | path

Searched refs:switchStmt (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DTerminatingContinueCheck.cpp31 doStmt(), switchStmt())) in registerMatchers()
H A DBranchCloneCheck.cpp78 Finder->addMatcher(switchStmt().bind("switch"), this); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DMultiwayPathsCoveredCheck.cpp27 switchStmt( in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DLoopUnrolling.cpp132 anyOf(gotoStmt(), switchStmt(), returnStmt(), in hasSuspiciousStmt()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1491 EXPECT_TRUE(matches("void x() { switch(42) { case 42:; } }", switchStmt())); in TEST_P()
1492 EXPECT_TRUE(matches("void x() { switch(42) { default:; } }", switchStmt())); in TEST_P()
1493 EXPECT_TRUE(matches("void x() { switch(42) default:; }", switchStmt())); in TEST_P()
1494 EXPECT_TRUE(notMatches("void x() {}", switchStmt())); in TEST_P()
H A DASTMatchersTraversalTest.cpp2024 switchStmt(hasCondition(integerLiteral(equals(42)))); in TEST()
4705 switchStmt(forEachSwitchCase(caseStmt())))); in TEST()
4707 switchStmt(forEachSwitchCase(caseStmt())))); in TEST()
4709 switchStmt(forEachSwitchCase(caseStmt())))); in TEST()
4712 ifStmt(has(switchStmt(forEachSwitchCase(defaultStmt())))))); in TEST()
4715 traverse(TK_AsIs, switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST()
4719 traverse(TK_AsIs, switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST()
4723 traverse(TK_AsIs, switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST()
4727 switchStmt(forEachSwitchCase(caseStmt().bind("x"))), in TEST()
H A DASTMatchersNarrowingTest.cpp1867 switchStmt(hasInitStatement(anything())))); in TEST_P()
1888 switchStmt(hasInitStatement(anything())))); in TEST_P()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp551 stmt(anyOf(ifStmt(), switchStmt(), conditionalOperator(), AssertLikeM, in hasUnguardedAccess()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp555 REGISTER_MATCHER(switchStmt); in RegistryMaps()
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp907 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; variable
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2264 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp438 switchStmt(has(compoundStmt(has(caseStmt()))))))); in TEST_P()