OLD | NEW |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 -build/header_guard | 58 -build/header_guard |
59 -build/include | 59 -build/include |
60 +build/include_alpha | 60 +build/include_alpha |
61 -build/include_what_you_use | 61 -build/include_what_you_use |
62 -build/namespaces | 62 -build/namespaces |
63 -readability/check | 63 -readability/check |
64 -readability/inheritance | 64 -readability/inheritance |
65 -readability/namespace | 65 -readability/namespace |
66 -readability/nolint | 66 -readability/nolint |
67 +readability/streams | 67 +readability/streams |
68 -runtime/indentation_namespace | |
69 -runtime/references | 68 -runtime/references |
70 -runtime/threadsafe_fn | 69 -runtime/threadsafe_fn |
71 -whitespace/semicolon | 70 -whitespace/semicolon |
72 -whitespace/empty_loop_body | 71 -whitespace/empty_loop_body |
73 """.split() | 72 """.split() |
74 | 73 |
75 LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing') | 74 LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing') |
76 FLAGS_LINE = re.compile("//\s*Flags:.*--([A-z0-9-])+_[A-z0-9].*\n") | 75 FLAGS_LINE = re.compile("//\s*Flags:.*--([A-z0-9-])+_[A-z0-9].*\n") |
77 | 76 |
78 def CppLintWorker(command): | 77 def CppLintWorker(command): |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 success = SourceProcessor().Run(workspace) and success | 460 success = SourceProcessor().Run(workspace) and success |
462 success = CheckExternalReferenceRegistration(workspace) and success | 461 success = CheckExternalReferenceRegistration(workspace) and success |
463 if success: | 462 if success: |
464 return 0 | 463 return 0 |
465 else: | 464 else: |
466 return 1 | 465 return 1 |
467 | 466 |
468 | 467 |
469 if __name__ == '__main__': | 468 if __name__ == '__main__': |
470 sys.exit(Main()) | 469 sys.exit(Main()) |
OLD | NEW |