Home
last modified time | relevance | path

Searched refs:ifBound (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Tooling/Transformer/
H A DStencil.h110 Stencil ifBound(llvm::StringRef Id, Stencil TrueStencil, Stencil FalseStencil);
114 inline Stencil ifBound(llvm::StringRef Id, llvm::StringRef TrueText, in ifBound() function
116 return ifBound(Id, detail::makeStencil(TrueText), in ifBound()
H A DRewriteRule.h142 inline EditGenerator ifBound(std::string ID, ASTEdit TrueEdit, in ifBound() function
144 return ifBound(std::move(ID), edit(std::move(TrueEdit)), in ifBound()
150 inline EditGenerator ifBound(std::string ID, ASTEdit TrueEdit) { in ifBound() function
151 return ifBound(std::move(ID), edit(std::move(TrueEdit)), noEdits()); in ifBound()
H A DMatchConsumer.h47 MatchConsumer<T> ifBound(std::string ID, MatchConsumer<T> TrueC, in ifBound() function
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DStencilTest.cpp199 testExpr(Id, "3;", ifBound(Id, cat("5"), cat("7")), "5"); in TEST_F()
204 testExpr(Id, "3;", ifBound("other", cat("5"), cat("7")), "7"); in TEST_F()
711 R"repr(ifBound("Id", "trueText", access("exprId", "memberData")))repr"; in TEST()
747 R"repr(ifBound("x", "t", access("e", "f"))))repr"; in TEST()
765 ifBound("x", cat("t"), access("e", "f"))}); in TEST()
H A DTransformerTest.cpp496 using transformer::ifBound; in TEST_F()
500 ifBound("return", changeTo(cat("CHANGE;")))), in TEST_F()
505 using transformer::ifBound; in TEST_F()
509 ifBound("nothing", changeTo(cat("ERROR")), in TEST_F()
H A DRangeSelectorTest.cpp762 EXPECT_THAT_EXPECTED(select(ifBound(ID, node(ID), node(Op)), Match), in TEST()
774 EXPECT_THAT_EXPECTED(select(ifBound(ID, node(ID), node(Op)), Match), in TEST()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DStencil.cpp471 Stencil transformer::ifBound(StringRef Id, Stencil TrueStencil, in ifBound() function in transformer