From a80c571e17148676df8303da2378f22a18ececd7 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 8 Feb 2017 13:02:26 +0330 Subject: added 19.14 and 20.1 --- mutator-lvl0.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index 46ed8e7..0aec6bc 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -7380,9 +7380,20 @@ public: JSONDocOUT.JSONAddElement(SpellingLine, SpellingColumn, FileName, "14.2", "Expression result is unused:"); } - if (Info.getID() == 0U) + if (Info.getID() == 966U) { + std::cout << "19.14:" << "\"defined\" has undefined behaviour:" << SL.printToString(SM) << ":" << std::endl; + XMLDocOut.XMLAddNode(SpellingLine, SpellingColumn, FileName, "19.14", "\"defined\" has undefined behaviour:"); + JSONDocOUT.JSONAddElement(SpellingLine, SpellingColumn, FileName, "19.14", "\"defined\" has undefined behaviour:"); + } + + if (Info.getID() == 895U) + { + std::cout << "20.1:" << "Redefining built-in macro:" << SL.printToString(SM) << ":" << std::endl; + + XMLDocOut.XMLAddNode(SpellingLine, SpellingColumn, FileName, "20.1", "Redefining built-in macro:"); + JSONDocOUT.JSONAddElement(SpellingLine, SpellingColumn, FileName, "20.1", "Redefining built-in macro:"); } } -- cgit v1.2.3