UNCONFIRMED Bug 27501
Coding style - Clarify multiple line "if" condition
https://bugs.webkit.org/show_bug.cgi?id=27501
Summary Coding style - Clarify multiple line "if" condition
Luciano Wolf
Reported 2009-07-21 07:50:08 PDT
Clarify the case where the "if" condition spawns through multiple lines. Should it use braces or not? According to the Qt coding style[1] - braces section - it should use braces, so not having this clarified might confuse Qt developers. From the Qt coding style document[1]: # Exception 1: Use braces also if the parent statement covers several lines / wraps // Correct if (address.isEmpty() || !isValid() || !codec) { return false; } [1] http://qt.gitorious.org/qt/pages/QtCodingStyle
Attachments
Note You need to log in before you can comment on or make changes to this bug.