Bug 155243
| Summary: | check-webkit-style complains about number of spaces at line-start for line breaks in conditional | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | John Wilander <wilander> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | lforschler |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
John Wilander
The style checker complains about the number of spaces at line-start for the OR cases in this conditional:
for (auto& resource : resourceMap.values()) {
if (resource.isSomething && resource.isSomthingElse) {
vectorA.append(resource.domain);
} else if (resource.isSomething) {
vectorB.append(resource.domain);
} else if (resource.subresourceMapA.size() > subresourceThresholdA
|| resource.subresourceMapB.size() > subresourceThresholdB
|| resource.subresourceMapC.size() > subresourceThresholdC
|| resource.subresourceMapD.size() > subresourceThresholdD) {
if (resource.isSomethingElse)
vectorA.append(resource.domain);
else {
vectorB.append(resource.domain);
resource.isSomething = true;
}
}
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |