Bug 136663
| Summary: | check-webkit-style thinks @try and @catch are function definitions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | David Farler <dfarler> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | simon.fraser |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
David Farler
ERROR: Tools/LayoutTestRelay/LayoutTestRelay/LTRelayController.m:97: Place brace on its own line for function definitions. [whitespace/braces] [4]
ERROR: Tools/LayoutTestRelay/LayoutTestRelay/LTRelayController.m:97: Extra space before ( in function call [whitespace/parens] [4]
Total errors found: 2 in 5 files
@try {
NSData *data = [fileHandle availableData];
uint8_t bytes[[data length]];
[data getBytes:bytes length:[data length]];
[[[self relay] outputStream] write:[data bytes] maxLength:[data length]];
} @catch (NSException *e) {
// Broken pipe - the dump tool crashed. Time to die.
[self didCrashWithMessage:nil];
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |