Home
last modified time | relevance | path

Searched refs:makeRule (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang/unittests/Tooling/
DTransformerTest.cpp29 using ::clang::transformer::makeRule;
171 auto R = makeRule( in ruleStrlenSize()
196 RewriteRule Rule = makeRule( in TEST_F()
219 makeRule(callExpr(callee(functionDecl(hasName("f")))), 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()
324 testRule(makeRule(declRefExpr(to(functionDecl(hasName("bad")))).bind(Ref), in TEST_F()
342 Transformer T(makeRule(declRefExpr(to(functionDecl())).bind(Ref), in TEST_F()
[all …]
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DTransformerClangTidyCheckTest.cpp26 using transformer::makeRule;
35 makeRule(ifStmt(hasCondition(expr().bind(C)), hasThen(stmt().bind(T)), in invertIf()
75 makeRule(integerLiteral(), change(cat("LIT")), cat("no message")), in IntLitCheck()
98 makeRule( in BinOpCheck()
125 return makeRule(clang::ast_matchers::functionDecl(), in needsObjC()
150 return makeRule(clang::ast_matchers::functionDecl(), in noSkip()
177 RewriteRule Rule = makeRule(callExpr(callee(functionDecl(hasName("f")))), in replaceCall()
226 RewriteRule Rule = transformer::makeRule(integerLiteral(), change(cat("5")), in rule()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DStringFindStrContainsCheck.cpp30 using ::clang::transformer::makeRule;
78 {makeRule(binaryOperator(hasOperatorName("=="), in MakeRule()
84 makeRule(binaryOperator(hasOperatorName("!="), in MakeRule()
/external/llvm-project/clang/include/clang/Tooling/Transformer/
DRewriteRule.h290 RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
294 inline RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
297 return makeRule(std::move(M), editList(std::move(Edits)),
302 inline RewriteRule makeRule(ast_matchers::internal::DynTypedMatcher M,
305 return makeRule(std::move(M), edit(std::move(Edit)), std::move(Explanation));
/external/llvm-project/clang/lib/Tooling/Transformer/
DRewriteRule.cpp164 RewriteRule transformer::makeRule(DynTypedMatcher M, EditGenerator Edits, in makeRule() function in transformer