godot/core/math
Rémi Verschelde 07bc4e2f96 Style: Enforce separation line between function definitions
I couldn't find a tool that enforces it, so I went the manual route:
```
find -name "thirdparty" -prune \
  -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \
  -o -name "*.glsl" > files
perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files)
misc/scripts/fix_style.sh -c
```

This adds a newline after all `}` on the first column, unless they
are followed by `#` (typically `#endif`). This leads to having lots
of places with two lines between function/class definitions, but
clang-format then fixes it as we enforce max one line of separation.

This doesn't fix potential occurrences of function definitions which
are indented (e.g. for a helper class defined in a .cpp), but it's
better than nothing. Also can't be made to run easily on CI/hooks so
we'll have to be careful with new code.

Part of #33027.
2020-05-14 16:54:55 +02:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
a_star.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
a_star.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
aabb.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
aabb.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
audio_frame.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
basis.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
basis.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
camera_matrix.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
camera_matrix.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
delaunay_2d.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
delaunay_3d.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
disjoint_set.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
expression.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
expression.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
face3.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
face3.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
geometry.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
geometry.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
math_defs.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
math_fieldwise.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
math_fieldwise.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
math_funcs.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
math_funcs.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
octree.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
plane.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
plane.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
quat.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
quat.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
quick_hull.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
quick_hull.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
random_number_generator.cpp Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
random_number_generator.h Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
random_pcg.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
random_pcg.h typedefs: Cleanup unused macros and unnecessary checks 2020-03-11 21:44:56 +01:00
rect2.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
rect2.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
transform.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
transform.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
transform_2d.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
transform_2d.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
triangle_mesh.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
triangle_mesh.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
triangulate.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
triangulate.h Style: Harmonize header guards to style guide [Core] 2020-03-25 11:22:19 +01:00
vector2.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector2.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector3.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector3.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector3i.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
vector3i.h Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00