[PATCH] D85485: Fix quiet mode in git-clang-format

Gvald Ike via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 19 04:15:44 PDT 2020


Gvald updated this revision to Diff 286531.
Gvald edited the summary of this revision.
Gvald added a project: clang-format.
Gvald added a comment.

PEP8 compliance fix


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85485/new/

https://reviews.llvm.org/D85485

Files:
  clang/tools/clang-format/git-clang-format


Index: clang/tools/clang-format/git-clang-format
===================================================================
--- clang/tools/clang-format/git-clang-format
+++ clang/tools/clang-format/git-clang-format
@@ -148,7 +148,8 @@
       for filename in changed_lines:
         print('    %s' % filename)
   if not changed_lines:
-    print('no modified files to format')
+    if opts.verbose >= 0:
+      print('no modified files to format')
     return
   # The computed diff outputs absolute paths, so we must cd before accessing
   # those files.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85485.286531.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200819/fdda760b/attachment.bin>


More information about the cfe-commits mailing list