| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 -build/header_guard | 56 -build/header_guard |
| 57 +build/include_alpha | 57 +build/include_alpha |
| 58 -build/include_what_you_use | 58 -build/include_what_you_use |
| 59 -build/namespaces | 59 -build/namespaces |
| 60 -readability/check | 60 -readability/check |
| 61 -readability/inheritance | 61 -readability/inheritance |
| 62 -readability/namespace | 62 -readability/namespace |
| 63 -readability/nolint | 63 -readability/nolint |
| 64 +readability/streams | 64 +readability/streams |
| 65 -runtime/references | 65 -runtime/references |
| 66 -whitespace/semicolon | |
| 67 """.split() | 66 """.split() |
| 68 | 67 |
| 69 LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing') | 68 LINT_OUTPUT_PATTERN = re.compile(r'^.+[:(]\d+[:)]|^Done processing') |
| 70 FLAGS_LINE = re.compile("//\s*Flags:.*--([A-z0-9-])+_[A-z0-9].*\n") | 69 FLAGS_LINE = re.compile("//\s*Flags:.*--([A-z0-9-])+_[A-z0-9].*\n") |
| 71 | 70 |
| 72 def CppLintWorker(command): | 71 def CppLintWorker(command): |
| 73 try: | 72 try: |
| 74 process = subprocess.Popen(command, stderr=subprocess.PIPE) | 73 process = subprocess.Popen(command, stderr=subprocess.PIPE) |
| 75 process.wait() | 74 process.wait() |
| 76 out_lines = "" | 75 out_lines = "" |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 success = SourceProcessor().Run(workspace) and success | 454 success = SourceProcessor().Run(workspace) and success |
| 456 success = CheckExternalReferenceRegistration(workspace) and success | 455 success = CheckExternalReferenceRegistration(workspace) and success |
| 457 if success: | 456 if success: |
| 458 return 0 | 457 return 0 |
| 459 else: | 458 else: |
| 460 return 1 | 459 return 1 |
| 461 | 460 |
| 462 | 461 |
| 463 if __name__ == '__main__': | 462 if __name__ == '__main__': |
| 464 sys.exit(Main()) | 463 sys.exit(Main()) |
| OLD | NEW |