diff options
Diffstat (limited to 'removeFunctionCall.cpp')
| -rw-r--r-- | removeFunctionCall.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/removeFunctionCall.cpp b/removeFunctionCall.cpp index 2be2d9d..aca9adb 100644 --- a/removeFunctionCall.cpp +++ b/removeFunctionCall.cpp @@ -133,7 +133,8 @@ int main(int argc, // changeTo(node(ArgId), transformer::maybeDeref(ArgId))); auto functionToRemove = functionDecl(matchesName("configValue")); - auto Rule = makeRule(callExpr(callee(functionToRemove)), changeTo(cat("true"))); + auto Rule = makeRule(callExpr(hasArgument(0, expr().bind("keyName")), callee(functionToRemove)), + changeTo(cat("true"))); AtomicChanges AllChanges; |
