From f629a5c8bd4bc8754e8710ea18fa86cdf37ecb14 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 16 Jul 2017 10:00:52 +0430 Subject: reverted --- mutator-lvl0.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 7b7ca3c..606b0c2 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -6642,7 +6642,7 @@ public: #endif } - virtual void MacroUndefined(const Token &MacroNameTok, const MacroDefinition &MD) + virtual void MacroUndefined(const Token &MacroNameTok, const MacroDefinition &MD, const MacroDirective *Undef) { #if 1 const MacroInfo* MI = MD.getMacroInfo(); @@ -7220,7 +7220,7 @@ public: { /*@DEVI-Macro args are passed twice. first they are expanded and then the whole macro, including the args is checked again for expansion, so args are passed twice.*/ - if (MI->getNumArgs() != Args->getNumMacroArguments() - MI->getNumArgs()) + if (MI->getNumArgs() != Args->getNumArguments() - MI->getNumArgs()) { if (Devi::IsTheMatchInSysHeader(CheckSystemHeader, SM, MDSL)) { @@ -7231,7 +7231,7 @@ public: if (Devi::IsTheMatchInMainFile(MainFileOnly, SM, MDSL)) { std::cout << "19.8:" << "Funciton-like macro invoked with wrong number of arguments:"; - std::cout << Range.getBegin().printToString(SM) << ":" << Args->getNumMacroArguments() << " " << MI->getNumArgs() << ":" << "\n"; + std::cout << Range.getBegin().printToString(SM) << ":" << Args->getNumArguments() << " " << MI->getNumArgs() << ":" << "\n"; XMLDocOut.XMLAddNode(SM, SL, "19.8", "Funciton-like macro invoked with wrong number of arguments:"); JSONDocOUT.JSONAddElement(SM, SL, "19.8", "Funciton-like macro invoked with wrong number of arguments:"); -- cgit v1.2.3