Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F22994633
D12031.id28960.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D12031.id28960.diff
View Options
Index: tools/clang-format/clang-format-diff.py
===================================================================
--- tools/clang-format/clang-format-diff.py
+++ tools/clang-format/clang-format-diff.py
@@ -107,8 +107,8 @@
if not args.i:
with open(filename) as f:
- code = f.readlines()
- formatted_code = io.StringIO(stdout.decode()).readlines()
+ code = f.read().split()
+ formatted_code = io.StringIO(stdout.decode()).read().split()
diff = difflib.unified_diff(code, formatted_code,
filename, filename,
'(before formatting)', '(after formatting)')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 6:14 AM (23 h, 45 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
17406055
Default Alt Text
D12031.id28960.diff (665 B)
Attached To
Mode
D12031: Don't compare line endings when checking format
Attached
Detach File
Event Timeline
Log In to Comment