diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml deleted file mode 100644 index fd6d7dd..0000000 --- a/.github/workflows/clang-format-check.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: clang-format Check -on: - push: - branches: - - main - - develop - pull_request: - -jobs: - formatting-check: - name: Formatting Check - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run clang-format style check for C/C++/Protobuf programs. - uses: jidicula/clang-format-action@v4.13.0 - with: - clang-format-version: '13' - check-path: ${{ matrix.path }} - exclude-regex: 'include/json.hpp' - fallback-style: 'Mozilla' # optional diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0240fee..6123ab2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,8 +16,9 @@ repos: - id: black # clang-format for C/C++ formatting - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v8.0.1 + rev: v19.1.2 hooks: - id: clang-format args: ['--style=file'] exclude: "include/json.hpp" + types_or: [c++] diff --git a/include/general.h b/include/general.h index c164cff..70d9fc4 100644 --- a/include/general.h +++ b/include/general.h @@ -49,4 +49,4 @@ inline V *FANS_malloc(size_t n) #define VERBOSITY 0 -//#define EIGEN_RUNTIME_NO_MALLOC +// #define EIGEN_RUNTIME_NO_MALLOC diff --git a/include/solver.h b/include/solver.h index 17531db..f2ccc1e 100644 --- a/include/solver.h +++ b/include/solver.h @@ -43,7 +43,7 @@ class Solver { void iterateCubes(F f); void solve(); - virtual void internalSolve(){}; // important to have "{}" here, otherwise we get an error about undefined reference to vtable + virtual void internalSolve() {}; // important to have "{}" here, otherwise we get an error about undefined reference to vtable template void compute_residual_basic(RealArray &r_matrix, RealArray &u_matrix, F f);