summaryrefslogtreecommitdiff
path: root/removeFunctionCall.cpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-09-13 22:41:34 +0200
committerAotrix <[email protected]>2026-09-13 22:41:34 +0200
commit947f7476325f87e9b366acf69f2a0a2671fa4811 (patch)
treedb9b8f6edadb8363bc27948ecbaa717be7d970aa /removeFunctionCall.cpp
parentf78baa3500ac224e0d39dfefd2db69caea7f2def (diff)
create test function
Diffstat (limited to 'removeFunctionCall.cpp')
-rw-r--r--removeFunctionCall.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/removeFunctionCall.cpp b/removeFunctionCall.cpp
index 3e0d4cb..2be2d9d 100644
--- a/removeFunctionCall.cpp
+++ b/removeFunctionCall.cpp
@@ -127,14 +127,12 @@ int main(int argc,
StandaloneToolExecutor Executor(std::move(OptionsParser.get()));
- std::string ArgId = "arg";
-
// auto Rule = makeRule(
// callExpr(callee(functionDecl(hasName("AwesomeFunc"))),
// hasArgument(0, expr(hasType(pointerType())).bind(ArgId))),
// changeTo(node(ArgId), transformer::maybeDeref(ArgId)));
- auto functionToRemove = functionDecl(matchesName("displayHello"));
+ auto functionToRemove = functionDecl(matchesName("configValue"));
auto Rule = makeRule(callExpr(callee(functionToRemove)), changeTo(cat("true")));
AtomicChanges AllChanges;