Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Unified Diff: tools/linux/dump-static-initializers.py

Issue 251873003: linux: In diff mode, also print files with init function that calls 0 initializers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/linux/dump-static-initializers.py
diff --git a/tools/linux/dump-static-initializers.py b/tools/linux/dump-static-initializers.py
index 865559b93207400733e3a0ca3314a1869f530594..0e83456d78fd1e2d70d200580c3a26ba7fe5efc8 100755
--- a/tools/linux/dump-static-initializers.py
+++ b/tools/linux/dump-static-initializers.py
@@ -214,7 +214,10 @@ def main():
ref_output.append(ref)
if opts.diffable:
- print '\n'.join('# ' + qualified_filename + ' ' + r for r in ref_output)
+ if ref_output:
+ print '\n'.join('# ' + qualified_filename + ' ' + r for r in ref_output)
+ else:
+ print '# %s: (empty initializer list)' % qualified_filename
else:
print '%s (initializer offset 0x%x size 0x%x)' % (qualified_filename,
addr, size)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698