diff options
author | bloodstalker <thabogre@gmail.com> | 2017-09-20 23:47:48 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-09-20 23:47:48 +0000 |
commit | 18022d128717d10aeaa50d7f6b7491072b549974 (patch) | |
tree | 93198da012b92d1b42a3b9f352a761316a7cdc10 | |
parent | added some stuff into contributions.md (diff) | |
download | mutator-18022d128717d10aeaa50d7f6b7491072b549974.tar.gz mutator-18022d128717d10aeaa50d7f6b7491072b549974.zip |
some api-changes handling, along with more text for contribs
Diffstat (limited to '')
-rw-r--r-- | Contributions.md | 4 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | bruiser/ORCmutation.h | 2 | ||||
-rw-r--r-- | mutator-lvl0.cpp | 4 |
4 files changed, 12 insertions, 1 deletions
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.<br/> + + +### Contributers.md +Don't forget to add your name to the `Contributers.md` file in the repo root.<br/> @@ -362,6 +362,9 @@ Besides that, If you have any suggestions or have any feature requests for proje * Using Appveyor to test windows builds<br/> * Have the server capture stderr<br/> +### Contributions +For a full description please read `Contributions.md` in the repo root.<br/> + ### 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.<br/> If the company/organization you represent wants to sponsor mutator, let me know.<br/> 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:"); |