Cleanup: format all of ./intern, use .clang-format to exclude paths
Directories in intern/ were selectively formatted based on paths in `tools/utils_maintenance/clang_format_paths.py`. This had the following problems: - Editing files inside intern/ would auto-format on save with editors setup to auto-format as there was nothing to disable formatting. - Some directories were missing (by accident it seems). Resolve by formatting all of `./intern/` exclude except for `./intern/itasc/` which includes ITASC & KDL versions we might want to sync with upstream.
This commit is contained in:
@@ -20,9 +20,7 @@ struct ObjVertex {
|
||||
uint32_t n = (uint32_t)-1;
|
||||
uint32_t uv = (uint32_t)-1;
|
||||
|
||||
ObjVertex()
|
||||
{
|
||||
}
|
||||
ObjVertex() {}
|
||||
|
||||
ObjVertex(uint32_t pi)
|
||||
{
|
||||
|
||||
@@ -28,25 +28,15 @@ struct float3 {
|
||||
|
||||
float3() = default;
|
||||
|
||||
float3(const float *ptr) : x{ptr[0]}, y{ptr[1]}, z{ptr[2]}
|
||||
{
|
||||
}
|
||||
float3(const float *ptr) : x{ptr[0]}, y{ptr[1]}, z{ptr[2]} {}
|
||||
|
||||
float3(const float (*ptr)[3]) : float3((const float *)ptr)
|
||||
{
|
||||
}
|
||||
float3(const float (*ptr)[3]) : float3((const float *)ptr) {}
|
||||
|
||||
explicit float3(float value) : x(value), y(value), z(value)
|
||||
{
|
||||
}
|
||||
explicit float3(float value) : x(value), y(value), z(value) {}
|
||||
|
||||
explicit float3(int value) : x(value), y(value), z(value)
|
||||
{
|
||||
}
|
||||
explicit float3(int value) : x(value), y(value), z(value) {}
|
||||
|
||||
float3(float x, float y, float z) : x{x}, y{y}, z{z}
|
||||
{
|
||||
}
|
||||
float3(float x, float y, float z) : x{x}, y{y}, z{z} {}
|
||||
|
||||
operator const float *() const
|
||||
{
|
||||
|
||||
@@ -57,7 +57,8 @@ bool wayland_dynload_client_init(const bool verbose)
|
||||
|
||||
#define WAYLAND_DYNLOAD_FN(symbol) \
|
||||
if (!(wayland_dynload_client.symbol = dynamic_library_find_with_error( \
|
||||
lib, #symbol, paths[path_found], verbose))) { \
|
||||
lib, #symbol, paths[path_found], verbose))) \
|
||||
{ \
|
||||
return false; \
|
||||
}
|
||||
#include "wayland_dynload_client.h"
|
||||
|
||||
@@ -38,7 +38,8 @@ bool wayland_dynload_cursor_init(const bool verbose)
|
||||
|
||||
#define WAYLAND_DYNLOAD_FN(symbol) \
|
||||
if (!(wayland_dynload_cursor.symbol = dynamic_library_find_with_error( \
|
||||
lib, #symbol, paths[path_index], verbose))) { \
|
||||
lib, #symbol, paths[path_index], verbose))) \
|
||||
{ \
|
||||
return false; \
|
||||
}
|
||||
#include "wayland_dynload_cursor.h"
|
||||
|
||||
@@ -38,7 +38,8 @@ bool wayland_dynload_egl_init(const bool verbose)
|
||||
|
||||
#define WAYLAND_DYNLOAD_FN(symbol) \
|
||||
if (!(wayland_dynload_egl.symbol = dynamic_library_find_with_error( \
|
||||
lib, #symbol, paths[path_found], verbose))) { \
|
||||
lib, #symbol, paths[path_found], verbose))) \
|
||||
{ \
|
||||
return false; \
|
||||
}
|
||||
#include "wayland_dynload_egl.h"
|
||||
|
||||
@@ -38,7 +38,8 @@ bool wayland_dynload_libdecor_init(const bool verbose)
|
||||
|
||||
#define WAYLAND_DYNLOAD_FN(symbol) \
|
||||
if (!(wayland_dynload_libdecor.symbol = dynamic_library_find_with_error( \
|
||||
lib, #symbol, paths[path_index], verbose))) { \
|
||||
lib, #symbol, paths[path_index], verbose))) \
|
||||
{ \
|
||||
return false; \
|
||||
}
|
||||
#include "wayland_dynload_libdecor.h"
|
||||
|
||||
@@ -56,26 +56,7 @@ def compute_paths(paths: List[str], use_default_paths: bool) -> List[str]:
|
||||
# Optionally pass in files to operate on.
|
||||
if use_default_paths:
|
||||
paths = [
|
||||
"intern/atomic",
|
||||
"intern/audaspace",
|
||||
"intern/clog",
|
||||
"intern/cycles",
|
||||
"intern/dualcon",
|
||||
"intern/eigen",
|
||||
"intern/ffmpeg",
|
||||
"intern/ghost",
|
||||
"intern/glew-mx",
|
||||
"intern/guardedalloc",
|
||||
"intern/iksolver",
|
||||
"intern/libmv",
|
||||
"intern/locale",
|
||||
"intern/memutil",
|
||||
"intern/mikktspace",
|
||||
"intern/opencolorio",
|
||||
"intern/opensubdiv",
|
||||
"intern/openvdb",
|
||||
"intern/rigidbody",
|
||||
"intern/utfconv",
|
||||
"intern",
|
||||
"source",
|
||||
"tests/gtests",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user