summaryrefslogtreecommitdiff
path: root/removeFunctionCall.cpp
diff options
context:
space:
mode:
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 16bd6a9..8f62818 100644
--- a/removeFunctionCall.cpp
+++ b/removeFunctionCall.cpp
@@ -87,8 +87,6 @@ AST_POLYMORPHIC_MATCHER_P2(hasVariableNameArgument,
clang::ast_matchers::internal::Matcher<Expr>,
InnerMatcher)
{
- if (!VariableName.empty())
- std::cout << VariableName << " ; " << Node.getNumArgs() << '\n';
if (!Node.getNumArgs())
return false;
const Expr* Arg = Node.getArg(0);
@@ -107,7 +105,7 @@ AST_POLYMORPHIC_MATCHER_P2(hasExpectedValueArgument,
clang::ast_matchers::internal::Matcher<Expr>,
InnerMatcher)
{
- if (Node.getNumArgs() < 2)
+ if (Node.getNumArgs() > 2)
return false;
const Expr* Arg = Node.getArg(1);
if (Finder->isTraversalIgnoringImplicitNodes() && isa<CXXDefaultArgExpr>(Arg))