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

Side by Side Diff: tools/presubmit.py

Issue 2300823002: Revert of [inspector] Initial import of v8_inspector. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « src/inspector/public/V8StackTrace.h ('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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 def IgnoreDir(self, name): 292 def IgnoreDir(self, name):
293 return (super(SourceProcessor, self).IgnoreDir(name) or 293 return (super(SourceProcessor, self).IgnoreDir(name) or
294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources')) 294 name in ('third_party', 'gyp', 'out', 'obj', 'DerivedSources'))
295 295
296 IGNORE_COPYRIGHTS = ['box2d.js', 296 IGNORE_COPYRIGHTS = ['box2d.js',
297 'cpplint.py', 297 'cpplint.py',
298 'copy.js', 298 'copy.js',
299 'corrections.js', 299 'corrections.js',
300 'crypto.js', 300 'crypto.js',
301 'daemon.py', 301 'daemon.py',
302 'DebuggerScript.js',
303 'earley-boyer.js', 302 'earley-boyer.js',
304 'fannkuch.js', 303 'fannkuch.js',
305 'fasta.js', 304 'fasta.js',
306 'InjectedScript.cpp',
307 'InjectedScript.h',
308 'InjectedScriptSource.js',
309 'JavaScriptCallFrame.cpp',
310 'JavaScriptCallFrame.h',
311 'jsmin.py', 305 'jsmin.py',
312 'libraries.cc', 306 'libraries.cc',
313 'libraries-empty.cc', 307 'libraries-empty.cc',
314 'lua_binarytrees.js', 308 'lua_binarytrees.js',
315 'memops.js', 309 'memops.js',
316 'poppler.js', 310 'poppler.js',
317 'primes.js', 311 'primes.js',
318 'raytrace.js', 312 'raytrace.js',
319 'regexp-pcre.js', 313 'regexp-pcre.js',
320 'rjsmin.py',
321 'ScriptBreakpoint.h',
322 'sqlite.js', 314 'sqlite.js',
323 'sqlite-change-heap.js', 315 'sqlite-change-heap.js',
324 'sqlite-pointer-masking.js', 316 'sqlite-pointer-masking.js',
325 'sqlite-safe-heap.js', 317 'sqlite-safe-heap.js',
326 'V8DebuggerScript.h',
327 'V8FunctionCall.cpp',
328 'V8FunctionCall.h',
329 'V8InspectorImpl.cpp',
330 'V8InspectorImpl.h',
331 'V8RuntimeAgentImpl.cpp',
332 'V8RuntimeAgentImpl.h',
333 'gnuplot-4.6.3-emscripten.js', 318 'gnuplot-4.6.3-emscripten.js',
334 'zlib.js'] 319 'zlib.js']
335 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js'] 320 IGNORE_TABS = IGNORE_COPYRIGHTS + ['unicode-test.js', 'html-comments.js']
336 321
337 def EndOfDeclaration(self, line): 322 def EndOfDeclaration(self, line):
338 return line == "}" or line == "};" 323 return line == "}" or line == "};"
339 324
340 def StartOfDeclaration(self, line): 325 def StartOfDeclaration(self, line):
341 return line.find("//") == 0 or \ 326 return line.find("//") == 0 or \
342 line.find("/*") == 0 or \ 327 line.find("/*") == 0 or \
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 success &= CheckExternalReferenceRegistration(workspace) 489 success &= CheckExternalReferenceRegistration(workspace)
505 success &= CheckStatusFiles(workspace) 490 success &= CheckStatusFiles(workspace)
506 if success: 491 if success:
507 return 0 492 return 0
508 else: 493 else:
509 return 1 494 return 1
510 495
511 496
512 if __name__ == '__main__': 497 if __name__ == '__main__':
513 sys.exit(Main()) 498 sys.exit(Main())
OLDNEW
« no previous file with comments | « src/inspector/public/V8StackTrace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698