Skip to content

Commit

Permalink
Update clang-format check tool and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bfierz authored May 21, 2022
1 parent eba15df commit fed5b0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/examples/webgpu/common/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
6 changes: 3 additions & 3 deletions src/libs/vcl.geometry/vcl/geometry/property.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ namespace Vcl { namespace Geometry {
}

public:
operator Property<value_type, index_type>*() const { return _property; }
operator const Property<value_type, index_type>*() const { return _property; }
operator Property<value_type, index_type> *() const { return _property; }
operator const Property<value_type, index_type> *() const { return _property; }

Property<value_type, index_type>* ptr() const { return _property; }

Expand Down Expand Up @@ -471,7 +471,7 @@ namespace Vcl { namespace Geometry {
}

public:
operator const Property<value_type, index_type>*() const { return _property; }
operator const Property<value_type, index_type> *() const { return _property; }

const Property<value_type, index_type>* ptr() const { return _property; }

Expand Down

0 comments on commit fed5b0d

Please sign in to comment.