Style: Various fixes to play nice with clang-format

(cherry picked from commit 2a0ddc1e89)
This commit is contained in:
Rémi Verschelde
2017-01-15 22:15:47 +01:00
parent 2d479aa0c6
commit 16b78da941
20 changed files with 162 additions and 139 deletions

View File

@@ -39,6 +39,8 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
}
switch(type) {
/** Current clang-format style doesn't play well with the aligned return values of that switch. */
/* clang-format off */
case NONE:
return true;
case KEY:
@@ -80,6 +82,7 @@ bool InputEvent::operator==(const InputEvent &p_event) const {
case ACTION:
return action.action == p_event.action.action
&& action.pressed == p_event.action.pressed;
/* clang-format on */
default:
ERR_PRINT("No logic to compare InputEvents of this type, this shouldn't happen.");
}