diff options
author | bloodstalker <thabogre@gmail.com> | 2017-02-05 17:58:39 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-02-05 17:58:39 +0000 |
commit | b50699ed2b0279fa4094c6e9ff34d74cbd81395a (patch) | |
tree | 63c1743f8bc26106412f95c51ae134f72641783b | |
parent | fixing... (diff) | |
download | mutator-b50699ed2b0279fa4094c6e9ff34d74cbd81395a.tar.gz mutator-b50699ed2b0279fa4094c6e9ff34d74cbd81395a.zip |
added 14.2
-rw-r--r-- | mutator-lvl0.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index a1129d0..a8c0f52 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -5477,12 +5477,14 @@ public: bool IsAngled, CharSourceRange FileNameRange, const FileEntry* File, \ StringRef SearchPath, StringRef RelativePath, const clang::Module* Imported) { + /*@DEVI-not including the correct directory for headers inclusions will make the code crash. the below consition does not prevent that.*/ if (File->isValid()) { #if 0 assert(HashLoc.isValid() && "The SourceLocation for InclusionDirective is invalid."); #endif +#if 0 if (IsAngled) { size_t singleQPos = FileName.find("\'", 0); @@ -5657,6 +5659,7 @@ public: } } } +#endif } } @@ -7304,6 +7307,13 @@ public: JSONDocOUT.JSONAddElement(SpellingLine, SpellingColumn, FileName, "9.2", "Brace initialization has either not been correctly used or not used at all:"); } + if (Info.getID() == 4872U) + { + std::cout << "14.2:" << "Expression result is unused:" << SL.printToString(SM) << ":" << std::endl; + + XMLDocOut.XMLAddNode(SpellingLine, SpellingColumn, FileName, "14.2", "Expression result is unused:"); + JSONDocOUT.JSONAddElement(SpellingLine, SpellingColumn, FileName, "14.2", "Expression result is unused:"); + } } |