Bug 136663 - check-webkit-style thinks @try and @catch are function definitions
Summary: check-webkit-style thinks @try and @catch are function definitions
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 20:27 PDT by David Farler
Modified: 2014-09-08 20:27 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Farler 2014-09-08 20:27:03 PDT
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];
    }