diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index c117fd4c..826ebae9 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -8,11 +8,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Run clang-format style check for C/C++ programs. - uses: jidicula/clang-format-action@v3.4.0 + uses: jidicula/clang-format-action@v4.5.0 with: clang-format-version: '10' check-path: 'src' - exclude-regex: '(externals|3rdparty|simd/detail|math/mcadams|tests/vcl.geometry/ref)' + exclude-regex: "'.*/externals/.*|.*/3rdparty/.*|.*/simd/detail/.*|.*/math/mcadams/.*|.*/tests/vcl.geometry/ref/.*'" # Alternative https://github.com/marketplace/actions/clang-format-lint # Format all: find ./src -path "*/externals/*" -prune -o -path "*/3rdparty/*" -prune -o -path "*/simd/detail/*" -prune -o -path "*/tests/vcl.geometry/ref/*" -prune -o -name \*.h -print0 -o -name \*.cpp -print0 -o -name \*.inl -print0 | xargs -0 clang-format-10 -i diff --git a/src/examples/webgpu/common/app.cpp b/src/examples/webgpu/common/app.cpp index 1e7befe3..bf64ccac 100644 --- a/src/examples/webgpu/common/app.cpp +++ b/src/examples/webgpu/common/app.cpp @@ -181,7 +181,7 @@ bool Application::initWebGpu(GLFWwindow* window) WGPUInstanceDescriptor inst_desc{}; _wgpuInstance = wgpuCreateInstance(&inst_desc); - + WGPURequestAdapterOptions adapter_options = {}; wgpuInstanceRequestAdapter(_wgpuInstance, &adapter_options, requestAdapterCallback, this); diff --git a/src/libs/vcl.geometry/vcl/geometry/property.h b/src/libs/vcl.geometry/vcl/geometry/property.h index dc2b7103..06c1c7b4 100644 --- a/src/libs/vcl.geometry/vcl/geometry/property.h +++ b/src/libs/vcl.geometry/vcl/geometry/property.h @@ -392,8 +392,8 @@ namespace Vcl { namespace Geometry { } public: - operator Property*() const { return _property; } - operator const Property*() const { return _property; } + operator Property *() const { return _property; } + operator const Property *() const { return _property; } Property* ptr() const { return _property; } @@ -471,7 +471,7 @@ namespace Vcl { namespace Geometry { } public: - operator const Property*() const { return _property; } + operator const Property *() const { return _property; } const Property* ptr() const { return _property; }