From 18022d128717d10aeaa50d7f6b7491072b549974 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Thu, 21 Sep 2017 04:17:48 +0430 Subject: some api-changes handling, along with more text for contribs --- Contributions.md | 4 ++++ README.md | 3 +++ bruiser/ORCmutation.h | 2 +- mutator-lvl0.cpp | 4 ++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Contributions.md b/Contributions.md index 5b4e8c9..51ea25a 100644 --- a/Contributions.md +++ b/Contributions.md @@ -14,3 +14,7 @@ For discussions regarding the implementations or feature requests or enhancement ### Labels We have quite a varied range of labels for issues. please use them.
+ + +### Contributers.md +Don't forget to add your name to the `Contributers.md` file in the repo root.
diff --git a/README.md b/README.md index 0194aae..03ac132 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,9 @@ Besides that, If you have any suggestions or have any feature requests for proje * Using Appveyor to test windows builds
* Have the server capture stderr
+### Contributions +For a full description please read `Contributions.md` in the repo root.
+ ### Support Well, I don't have the Misra-C:2012 Document. If you or your organization/company are willing to donate a copy to mutator, hit me up.
If the company/organization you represent wants to sponsor mutator, let me know.
diff --git a/bruiser/ORCmutation.h b/bruiser/ORCmutation.h index c026a1b..0a67c80 100644 --- a/bruiser/ORCmutation.h +++ b/bruiser/ORCmutation.h @@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.* /*inclusion guard*/ #ifndef ORC_MUTATION_H #define ORC_MUTATION_H -#if __clang_major__ == 5 +#if __clang_major__ >= 5 /**********************************************************************************************************************/ /*included modules*/ /*project headers*/ diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index fb8d5d8..8121030 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -7232,6 +7232,8 @@ public: if (MI->getNumArgs() != Args->getNumArguments() - MI->getNumArgs()) #elif __clang_major__ == 5 if (MI->getNumArgs() != Args->getNumMacroArguments() - MI->getNumArgs()) +#elif __clang_major__ == 6 + if (MI->getNumParams() != Args->getNumMacroArguments() - MI->getNumParams()) #endif { if (Devi::IsTheMatchInSysHeader(CheckSystemHeader, SM, MDSL)) @@ -7247,6 +7249,8 @@ public: std::cout << Range.getBegin().printToString(SM) << ":" << Args->getNumArguments() << " " << MI->getNumArgs() << ":" << "\n"; #elif __clang_major__ == 5 std::cout << Range.getBegin().printToString(SM) << ":" << Args->getNumMacroArguments() << " " << MI->getNumArgs() << ":" << "\n"; +#elif __clang_major__ == 6 + std::cout << Range.getBegin().printToString(SM) << ":" << Args->getNumMacroArguments() << " " << MI->getNumParams() << ":" << "\n"; #endif XMLDocOut.XMLAddNode(SM, SL, "19.8", "Funciton-like macro invoked with wrong number of arguments:"); -- cgit v1.2.3