From 0d684f65b364baf8551acafccf7169a7af24ad93 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Wed, 7 Oct 2026 22:49:15 +0200 Subject: Add value parameter to function --- removeFunctionCall.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'removeFunctionCall.cpp') 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, 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, InnerMatcher) { - if (Node.getNumArgs() < 2) + if (Node.getNumArgs() > 2) return false; const Expr* Arg = Node.getArg(1); if (Finder->isTraversalIgnoringImplicitNodes() && isa(Arg)) -- cgit v1.2.3