diff options
author | bloodstalker <thabogre@gmail.com> | 2017-05-20 06:56:24 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-05-20 06:56:24 +0000 |
commit | 9cadb84822695699b55150cfc6d7e2458e41f6a6 (patch) | |
tree | 4b226499f16eb15dfe8501f45a50018477e25c53 | |
parent | fixed a tinyxml2 assert being thrown when the xml report ended up being empty (diff) | |
download | mutator-9cadb84822695699b55150cfc6d7e2458e41f6a6.tar.gz mutator-9cadb84822695699b55150cfc6d7e2458e41f6a6.zip |
added a test for mutagen extractAncestry to make usre it works
-rw-r--r-- | mutator-lvl0.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp index d184a52..e5fd494 100644 --- a/mutator-lvl0.cpp +++ b/mutator-lvl0.cpp @@ -438,6 +438,15 @@ public: { const IfStmt *IS = MR.Nodes.getNodeAs<clang::IfStmt>("mcelse"); +#if 1 + if (mutagen) + { + ME.ExtractAncestry(ast_type_traits::DynTypedNode::create(*IS), *MR.Context); + ME.DumpLast(); + ME.DumpAll(); + } +#endif + SourceLocation SL = IS->getLocStart(); CheckSLValidity(SL); SL = Devi::SourceLocationHasMacro(SL, Rewrite, "start"); @@ -463,6 +472,7 @@ public: } private: + MutagenExtraction ME; Rewriter &Rewrite; }; /**********************************************************************************************************************/ @@ -8376,6 +8386,7 @@ public: } private: + MutagenExtraction ME; Rewriter TheRewriter; }; /**********************************************************************************************************************/ |