Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
parent
710b34b702
commit
0be6d925dc
1552 changed files with 1 additions and 33876 deletions
|
|
@ -37,10 +37,8 @@
|
|||
#include "core/set.h"
|
||||
|
||||
class QuickHull {
|
||||
|
||||
public:
|
||||
struct Edge {
|
||||
|
||||
union {
|
||||
uint32_t vertices[2];
|
||||
uint64_t id;
|
||||
|
|
@ -51,7 +49,6 @@ public:
|
|||
}
|
||||
|
||||
Edge(int p_vtx_a = 0, int p_vtx_b = 0) {
|
||||
|
||||
if (p_vtx_a > p_vtx_b) {
|
||||
SWAP(p_vtx_a, p_vtx_b);
|
||||
}
|
||||
|
|
@ -62,13 +59,11 @@ public:
|
|||
};
|
||||
|
||||
struct Face {
|
||||
|
||||
Plane plane;
|
||||
uint32_t vertices[3];
|
||||
Vector<int> points_over;
|
||||
|
||||
bool operator<(const Face &p_face) const {
|
||||
|
||||
return points_over.size() < p_face.points_over.size();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue