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

Side by Side Diff: tools/presubmit.py

Issue 25277003: Remove obsolete preparser binary and tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Preserve test suite. Created 7 years, 2 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
« no previous file with comments | « tools/android-sync.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2012 the V8 project authors. All rights reserved. 3 # Copyright 2012 the V8 project authors. All rights reserved.
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 return (super(CppLintProcessor, self).IgnoreDir(name) 219 return (super(CppLintProcessor, self).IgnoreDir(name)
220 or (name == 'third_party')) 220 or (name == 'third_party'))
221 221
222 IGNORE_LINT = ['flag-definitions.h'] 222 IGNORE_LINT = ['flag-definitions.h']
223 223
224 def IgnoreFile(self, name): 224 def IgnoreFile(self, name):
225 return (super(CppLintProcessor, self).IgnoreFile(name) 225 return (super(CppLintProcessor, self).IgnoreFile(name)
226 or (name in CppLintProcessor.IGNORE_LINT)) 226 or (name in CppLintProcessor.IGNORE_LINT))
227 227
228 def GetPathsToSearch(self): 228 def GetPathsToSearch(self):
229 return ['src', 'preparser', 'include', 'samples', join('test', 'cctest')] 229 return ['src', 'include', 'samples', join('test', 'cctest')]
230 230
231 def GetCpplintScript(self, prio_path): 231 def GetCpplintScript(self, prio_path):
232 for path in [prio_path] + os.environ["PATH"].split(os.pathsep): 232 for path in [prio_path] + os.environ["PATH"].split(os.pathsep):
233 path = path.strip('"') 233 path = path.strip('"')
234 cpplint = os.path.join(path, "cpplint.py") 234 cpplint = os.path.join(path, "cpplint.py")
235 if os.path.isfile(cpplint): 235 if os.path.isfile(cpplint):
236 return cpplint 236 return cpplint
237 237
238 return None 238 return None
239 239
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 "two empty lines between declarations check..." 426 "two empty lines between declarations check..."
427 success = SourceProcessor().Run(workspace) and success 427 success = SourceProcessor().Run(workspace) and success
428 if success: 428 if success:
429 return 0 429 return 0
430 else: 430 else:
431 return 1 431 return 1
432 432
433 433
434 if __name__ == '__main__': 434 if __name__ == '__main__':
435 sys.exit(Main()) 435 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/android-sync.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698