Home
last modified time | relevance | path

Searched refs:hasElse (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/mlir/python/mlir/dialects/
H A D_scf_ops_ext.py76 hasElse=False, argument
96 if hasElse:
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DBranchCloneCheck.cpp75 hasParent(stmt(unless(ifStmt(hasElse(equalsBoundNode("if")))))), in registerMatchers()
76 hasElse(stmt().bind("else"))), in registerMatchers()
H A DUnusedReturnValueCheck.cpp152 ifStmt(eachOf(hasThen(MatchedCallExpr), hasElse(MatchedCallExpr))); in registerMatchers()
H A DSuspiciousSemicolonCheck.cpp23 unless(hasElse(stmt())), in registerMatchers()
H A DMultipleStatementMacroCheck.cpp61 stmt(anyOf(ifStmt(hasThen(Inner)), ifStmt(hasElse(Inner)).bind("else"), in registerMatchers()
/llvm-project-15.0.7/mlir/test/python/dialects/
H A Dscf.py116 if_op = scf.IfOp(cond, [i32, i32], hasElse=True)
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/hicpp/
H A DMultiwayPathsCoveredCheck.cpp45 Finder->addMatcher(ifStmt(hasParent(ifStmt()), unless(hasElse(anything()))) in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisleadingIndentationCheck.cpp109 Finder->addMatcher(ifStmt(hasElse(stmt())).bind("if"), this); in registerMatchers()
H A DElseAfterReturnCheck.cpp181 hasElse(stmt().bind("else"))) in registerMatchers()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DTransformerTest.cpp832 hasElse(stmt().bind(E))), in TEST_F()
857 hasThen(stmt().bind(T)), hasElse(stmt().bind(E))), in TEST_F()
886 hasElse(stmt().bind(E))), in TEST_F()
912 hasThen(stmt().bind(T)), hasElse(stmt().bind(E))), in TEST_F()
H A DStencilTest.cpp147 hasThen(stmt().bind(Then)), hasElse(stmt().bind(Else)))); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-tidy/
H A DTransformerClangTidyCheckTest.cpp40 hasElse(stmt().bind(E))), in invertIf()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/IR/
H A DAffineOps.td448 bool hasElse() { return !getElseRegion().empty(); }
456 assert(hasElse() && "Empty 'else' region.");
466 assert(hasElse() && "No 'else' block");
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DUtils.cpp245 assert(ifOp.hasElse() && "else block expected"); in promoteIfBlock()
333 if (!ifCloneInElse.hasElse()) in hoistAffineIfOp()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp311 REGISTER_MATCHER(hasElse); in RegistryMaps()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersTraversalTest.cpp1502 ifStmt(hasElse(cxxBoolLiteral(equals(true)))))); in TEST()
1504 ifStmt(hasElse(cxxBoolLiteral(equals(true)))))); in TEST()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h5371 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) { in AST_MATCHER_P() argument
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/IR/
H A DAffineOps.cpp2323 if (op.getNumResults() == 0 && !op.hasElse()) { in matchAndRewrite()