[PATCH] D77974: A Minor change to clang-format-diff.py

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 07:30:02 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b379246c365: [clang-format] A Minor change to clang-format-diff.py (authored by MyDeveloperDay, committed by paulhoad <paul.hoad at gmail.com>).
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77974

Files:
  clang/tools/clang-format/clang-format-diff.py


Index: clang/tools/clang-format/clang-format-diff.py
===================================================================
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -65,7 +65,7 @@
     match = re.search(r'^\+\+\+\ (.*?/){%s}(\S*)' % args.p, line)
     if match:
       filename = match.group(2)
-    if filename == None:
+    if filename is None:
       continue
 
     if args.regex is not None:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77974.256969.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200413/44049da4/attachment.bin>


More information about the cfe-commits mailing list