[PATCH] D34824: clang-format: add an option -verbose to list the files being processed
Sylvestre Ledru via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 07:46:18 PDT 2017
sylvestre.ledru added inline comments.
================
Comment at: tools/clang-format/ClangFormat.cpp:380
+ if (Verbose.getNumOccurrences() != 0)
+ outs() << "Formatting " << FileNames[0] << '\n';
break;
----------------
djasper wrote:
> As clang-format often returns the result on stdout, maybe it'd be better to use errs() here?
Right, otherwise, this:
clang-format -verbose foo.cpp > bar.cpp
won't work
https://reviews.llvm.org/D34824
More information about the cfe-commits
mailing list