aboutsummaryrefslogtreecommitdiffstats
path: root/mutator-lvl0.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-04-13 09:15:59 +0000
committerbloodstalker <thabogre@gmail.com>2017-04-13 09:15:59 +0000
commitb1d1fcd650ee6f0c2d1ebb3183364fb50517f4c1 (patch)
tree7978a2f41ba16225dc575eacf4f87b659a6fbe81 /mutator-lvl0.cpp
parentadded a newer method for checking macro expansions. marked the old one as dep... (diff)
downloadmutator-b1d1fcd650ee6f0c2d1ebb3183364fb50517f4c1.tar.gz
mutator-b1d1fcd650ee6f0c2d1ebb3183364fb50517f4c1.zip
re-enabled the custom DiagnosticConsumer
Diffstat (limited to '')
-rw-r--r--mutator-lvl0.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp
index 6a37c01..3aa55c5 100644
--- a/mutator-lvl0.cpp
+++ b/mutator-lvl0.cpp
@@ -8116,20 +8116,12 @@ public:
DiagnosticsEngine &DiagEngine = CI.getPreprocessor().getDiagnostics();
-#if 0
- std::unique_ptr<Mutator0DiagnosticConsumer> M0DiagConsumer(new Mutator0DiagnosticConsumer);
-#endif
-
-#if 0
+#if 1
Mutator0DiagnosticConsumer* M0DiagConsumer = new Mutator0DiagnosticConsumer;
DiagEngine.setClient(M0DiagConsumer, true);
#endif
-#if 0
- const IdentifierTable &IT [[maybe_unused]] = CI.getPreprocessor().getIdentifierTable();
-#endif
-
TheRewriter.setSourceMgr(CI.getSourceManager(), CI.getLangOpts());
return llvm::make_unique<MyASTConsumer>(TheRewriter);
}