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

Side by Side Diff: components/tools/metrics/count_ifdefs.py

Issue 12782019: Move browser_components_metrics.py into a subdirectory of tools/metrics/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move files to //compontents/tools/metrics Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Counts the number of #if or #ifdef lines containing at least one 6 """Counts the number of #if or #ifdef lines containing at least one
7 preprocessor token that is a full match for the given pattern, in the 7 preprocessor token that is a full match for the given pattern, in the
8 given directory. 8 given directory.
9 """ 9 """
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 if len(args) < 2: 68 if len(args) < 2:
69 PrintUsage() 69 PrintUsage()
70 return 1 70 return 1
71 else: 71 else:
72 print CountIfdefs(args[0], args[1], options.skip_tests) 72 print CountIfdefs(args[0], args[1], options.skip_tests)
73 return 0 73 return 0
74 74
75 75
76 if __name__ == '__main__': 76 if __name__ == '__main__':
77 sys.exit(main()) 77 sys.exit(main())
OLDNEW
« no previous file with comments | « components/tools/metrics/browser_components_metrics.py ('k') | components/tools/metrics/count_ifdefs_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698