From 8ae4e40f6b275c5a1b77944b55fbcb7613c990bd Mon Sep 17 00:00:00 2001 From: fxliang Date: Wed, 26 Jun 2024 18:37:21 +0800 Subject: [PATCH] lint: bump llvm to 18.1.6 --- .github/workflows/commit-ci.yml | 4 ++-- WeaselIPC/PipeChannel.cpp | 4 ++-- WeaselTSF/Compartment.h | 2 +- WeaselUI/Layout.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml index e2633533e..6fa9b166f 100644 --- a/.github/workflows/commit-ci.yml +++ b/.github/workflows/commit-ci.yml @@ -30,11 +30,11 @@ jobs: uses: actions/cache@v4 with: path: C:\\Program Files\\LLVM - key: ${{ runner.os }}-llvm-17.0.6 + key: ${{ runner.os }}-llvm-18.1.6 - name: Install llvm if: steps.cache-llvm.outputs.cache-hit != 'true' - run: choco install llvm --version=17.0.6 + run: choco install llvm --version=18.1.6 - name: Code style lint shell: bash diff --git a/WeaselIPC/PipeChannel.cpp b/WeaselIPC/PipeChannel.cpp index 18365696b..c3912a588 100644 --- a/WeaselIPC/PipeChannel.cpp +++ b/WeaselIPC/PipeChannel.cpp @@ -24,7 +24,7 @@ PipeChannelBase::PipeChannelBase(std::wstring&& pn_cmd, buffer(std::make_unique(bs)), hpipe(INVALID_HANDLE_VALUE), has_body(false), - sa(s){}; + sa(s) {}; PipeChannelBase::PipeChannelBase(PipeChannelBase&& r) : write_stream(std::move(r.write_stream)), @@ -33,7 +33,7 @@ PipeChannelBase::PipeChannelBase(PipeChannelBase&& r) buffer(std::move(r.buffer)), hpipe(r.hpipe), has_body(r.has_body), - sa(r.sa){}; + sa(r.sa) {}; PipeChannelBase::~PipeChannelBase() { _FinalizePipe(hpipe); diff --git a/WeaselTSF/Compartment.h b/WeaselTSF/Compartment.h index 9316f9781..d030666ac 100644 --- a/WeaselTSF/Compartment.h +++ b/WeaselTSF/Compartment.h @@ -6,7 +6,7 @@ class CCompartmentEventSink : public ITfCompartmentEventSink { public: using Callback = std::function; CCompartmentEventSink(Callback callback) - : _callback(callback), _refCount(1){}; + : _callback(callback), _refCount(1) {}; ~CCompartmentEventSink() = default; // IUnknown diff --git a/WeaselUI/Layout.h b/WeaselUI/Layout.h index 0e19fd378..ec38cf68c 100644 --- a/WeaselUI/Layout.h +++ b/WeaselUI/Layout.h @@ -15,7 +15,7 @@ namespace weasel { class GraphicsRoundRectPath : public Gdiplus::GraphicsPath { public: - GraphicsRoundRectPath(){}; + GraphicsRoundRectPath() {}; GraphicsRoundRectPath(int left, int top, int width,