[PATCH] Added verbose option to cpp11-migrate tool

Manuel Klimek klimek at google.com
Wed Feb 13 03:50:59 PST 2013


  LG


================
Comment at: cpp11-migrate/Cpp11Migrate.cpp:109
@@ -104,1 +108,3 @@
     }
+    if (VerboseMode) {
+      llvm::outs() << "Transform: " << (*I)->getName()
----------------
You could also use llvm's DEBUG() + llvm::dbgs() for this.
This code would then become:
DEBUG({
  llvm::dbgs() << ...
})

The cool thing about using debug is that unit tests now support -debug as a flag, so you can see that output interleaved with your test runs.


http://llvm-reviews.chandlerc.com/D338



More information about the llvm-commits mailing list