Home
last modified time | relevance | path

Searched refs:RewriteRule (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/clang/include/clang/Tooling/Transformer/
DRewriteRule.h276 struct RewriteRule { struct
290 RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
294 inline RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
302 inline RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
318 void addInclude(RewriteRule &Rule, llvm::StringRef Header,
360 RewriteRule applyFirst(ArrayRef<RewriteRule> Rules);
377 EditGenerator rewriteDescendants(std::string NodeId, RewriteRule Rule);
404 rewriteDescendants(const Decl &Node, RewriteRule Rule,
408 rewriteDescendants(const Stmt &Node, RewriteRule Rule,
412 rewriteDescendants(const TypeLoc &Node, RewriteRule Rule,
[all …]
DTransformer.h33 Transformer(transformer::RewriteRule Rule, ChangeConsumer Consumer) in Transformer()
45 transformer::RewriteRule Rule;
/external/llvm-project/clang/lib/Tooling/Transformer/
DRewriteRule.cpp164 RewriteRule transformer::makeRule(DynTypedMatcher M, EditGenerator Edits, in makeRule()
166 return RewriteRule{{RewriteRule::Case{std::move(M), std::move(Edits), in makeRule()
233 ApplyRuleCallback(RewriteRule Rule) : Rule(std::move(Rule)) {} in ApplyRuleCallback()
245 transformer::RewriteRule::Case Case = in run()
255 RewriteRule Rule;
264 rewriteDescendantsImpl(const T &Node, RewriteRule Rule, in rewriteDescendantsImpl()
274 transformer::detail::rewriteDescendants(const Decl &Node, RewriteRule Rule, in rewriteDescendants()
280 transformer::detail::rewriteDescendants(const Stmt &Node, RewriteRule Rule, in rewriteDescendants()
286 transformer::detail::rewriteDescendants(const TypeLoc &Node, RewriteRule Rule, in rewriteDescendants()
293 RewriteRule Rule, in rewriteDescendants()
[all …]
DCMakeLists.txt9 RewriteRule.cpp
DTransformer.cpp33 transformer::RewriteRule::Case Case = in run()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DTransformerClangTidyCheck.cpp16 using transformer::RewriteRule;
19 static bool hasExplanation(const RewriteRule::Case &C) { in hasExplanation()
24 static void verifyRule(const RewriteRule &Rule) { in verifyRule()
42 std::function<Optional<RewriteRule>(const LangOptions &, in TransformerClangTidyCheck()
47 if (Optional<RewriteRule> R = MakeRule(getLangOpts(), Options)) in TransformerClangTidyCheck()
51 TransformerClangTidyCheck::TransformerClangTidyCheck(RewriteRule R, in TransformerClangTidyCheck()
58 void TransformerClangTidyCheck::setRule(transformer::RewriteRule R) { in setRule()
80 RewriteRule::Case Case = transformer::detail::findSelectedCase(Result, Rule); in check()
DTransformerClangTidyCheck.h51 TransformerClangTidyCheck(std::function<Optional<transformer::RewriteRule>(
58 TransformerClangTidyCheck(transformer::RewriteRule R, StringRef Name,
77 void setRule(transformer::RewriteRule R);
80 transformer::RewriteRule Rule;
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DTransformerClangTidyCheckTest.cpp28 using transformer::RewriteRule;
32 RewriteRule invertIf() { in invertIf()
34 RewriteRule Rule = in invertIf()
37 change(statement(std::string(RewriteRule::RootID)), in invertIf()
121 Optional<RewriteRule> needsObjC(const LangOptions &LangOpts, in needsObjC()
146 Optional<RewriteRule> noSkip(const LangOptions &LangOpts, in noSkip()
175 RewriteRule replaceCall(IncludeFormat Format) { in replaceCall()
177 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in replaceCall()
224 static RewriteRule rule() { in rule()
226 RewriteRule Rule = transformer::makeRule(integerLiteral(), change(cat("5")), in rule()
/external/llvm-project/clang/unittests/Tooling/
DTransformerTest.cpp35 using ::clang::transformer::RewriteRule;
168 static RewriteRule ruleStrlenSize() { in ruleStrlenSize()
196 RewriteRule Rule = makeRule( in TEST_F()
218 RewriteRule Rule = in TEST_F()
236 RewriteRule Rule = makeRule( in TEST_F()
255 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
273 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in TEST_F()
292 RewriteRule Rule = makeRule(functionDecl(hasName("bad")).bind(Fun), in TEST_F()
351 RewriteRule Rule = in TEST_F()
887 RewriteRule FlagRule = makeRule( in TEST_F()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DStringFindStrContainsCheck.cpp32 using ::clang::transformer::RewriteRule;
41 static llvm::Optional<transformer::RewriteRule>
77 RewriteRule rule = applyFirst( in MakeRule()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Java/
DAST.stg74 …:{it | RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream…
79 …:{it | RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream…
206 …:{it | RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream…
210 …:{it | RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DAST.stg70 …:{it |var stream_<it>:RewriteRule<rewriteElementType>Stream=new RewriteRule<rewriteElementType>Str…
195 …:{it |var stream_<it>:RewriteRule<rewriteElementType>Stream=new RewriteRule<rewriteElementType>Str…
199 …:{it |var stream_<it>:RewriteRule<rewriteElementType>Stream=new RewriteRule<rewriteElementType>Str…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DAST.stg98 …:{it|<\n>RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stre…
213 …:{it|RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream(a…
217 …:{it|RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream(a…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DAST.stg97 …:{it|RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream(a…
215 …:{it|RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream(a…
219 …:{it|RewriteRule<rewriteElementType>Stream stream_<it>=new RewriteRule<rewriteElementType>Stream(a…
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/Tooling/Transformer/
DBUILD.gn16 "RewriteRule.cpp",
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dmkl_eager_op_rewrite.cc32 std::function<bool(EagerOperation*)> RewriteRule; member
193 if (it->second.RewriteRule(op)) { in ShouldRewriteOp()
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DAST.stg178 [[RewriteRule<rewriteElementType>Stream newRewriteRule<rewriteElementType>Stream:treeAdaptor
341 :{it | RewriteRule<rewriteElementType>Stream *stream_<it> =
342 …[[RewriteRule<rewriteElementType>Stream newRewriteRule<rewriteElementType>Stream:treeAdaptor descr…
345 <referencedTokenListLabels:{it | RewriteRule<rewriteElementType>Stream *stream_<it> =
346 [[RewriteRule<rewriteElementType>Stream newRewriteRule<rewriteElementType>Stream:treeAdaptor
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python/
DAST.stg86 …:{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>")}; separato…
213 :{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>", <it>)};
217 …:{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>", list_<it>)…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Python3/
DAST.stg86 …:{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>")}; separato…
213 :{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>", <it>)};
217 …:{it | stream_<it> = RewriteRule<rewriteElementType>Stream(self._adaptor, "token <it>", list_<it>)…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DAST.stg194 …:{var stream_<it>=new org.antlr.runtime.tree.RewriteRule<rewriteElementType>Stream(this.adaptor,"t…
198 …:{var stream_<it>=new org.antlr.runtime.tree.RewriteRule<rewriteElementType>Stream(this.adaptor,"t…
/external/antlr/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DAST.stg26 …:{int |stream_<it> = ANTLR3::AST::RewriteRule<rewriteElementType>Stream.new( @adaptor, "token <it>…
/external/antlr/runtime/ObjC/Framework/ANTLR.xcodeproj/
Dproject.pbxproj1258 1A77EE1912E6A03B007F323A /* RewriteRule */,
1310 1A77EE1912E6A03B007F323A /* RewriteRule */ = {
1316 name = RewriteRule;