diff options
Diffstat (limited to 'removeFunctionCall.cpp')
| -rw-r--r-- | removeFunctionCall.cpp | 4 |
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; |
