diff options
| author | Aotrix <[email protected]> | 2026-10-07 22:49:15 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-10-07 22:49:15 +0200 |
| commit | 0d684f65b364baf8551acafccf7169a7af24ad93 (patch) | |
| tree | 46cda812567eec1e9601443438e4b6a6af9a157a /removeFunctionCall.cpp | |
| parent | be2826ed7596c7f82347af4f3908e8dce7558a6d (diff) | |
Add value parameter to function
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 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)) |
