[PATCH] D34824: clang-format: add an option -verbose to list the files being processed

Daniel Jasper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 30 07:13:10 PDT 2017

djasper added a comment.

Can you add a test? Tests for this kind of behavior of the clang-format command line go in test/Format/.

Comment at: tools/clang-format/ClangFormat.cpp:380
+    if (Verbose.getNumOccurrences() != 0)
+        outs() << "Formatting " << FileNames[0] << '\n';
As clang-format often returns the result on stdout, maybe it'd be better to use errs() here?


More information about the cfe-commits mailing list