From 947f7476325f87e9b366acf69f2a0a2671fa4811 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Sun, 13 Sep 2026 22:41:34 +0200 Subject: create test function --- removeFunctionCall.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'removeFunctionCall.cpp') 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; -- cgit v1.2.3