CI: Update to clang-format 11 and apply ternary operator changes

This commit is contained in:
Rémi Verschelde 2021-01-12 16:57:55 +01:00
parent df257f4fb6
commit af878716f2
No known key found for this signature in database
GPG key ID: C3336907360768E1
16 changed files with 57 additions and 43 deletions

View file

@ -790,8 +790,8 @@ Quat Basis::get_quat() const {
temp[2] = ((m.elements[1][0] - m.elements[0][1]) * s);
} else {
int i = m.elements[0][0] < m.elements[1][1] ?
(m.elements[1][1] < m.elements[2][2] ? 2 : 1) :
(m.elements[0][0] < m.elements[2][2] ? 2 : 0);
(m.elements[1][1] < m.elements[2][2] ? 2 : 1) :
(m.elements[0][0] < m.elements[2][2] ? 2 : 0);
int j = (i + 1) % 3;
int k = (i + 2) % 3;