Skip to content

Commit

Permalink
fix format checks
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Sep 7, 2023
1 parent 5fcfa2b commit 8c5349c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ BinPackArguments: false
IndentPPDirectives: AfterHash
AlwaysBreakTemplateDeclarations: true
BreakBeforeBinaryOperators: NonAssignment
AlignConsecutiveAssignments: true
ColumnLimit: 0
AlignConsecutiveAssignments: Consecutive
ColumnLimit: 0
12 changes: 10 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,18 @@ jobs:
cd htool/build
make doc
- name: Check format
- name: Check c++ format
uses: DoozyX/[email protected]
with:
source: 'htool/include htool/tests'
# exclude: './third_party ./external'
extensions: 'hpp,cpp'
clangFormatVersion: 16
style: file

- name: Check cmake format
run: |
cd htool/build
make format
make cmake-format
git diff --exit-code
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
!.clang-format
!.clang-tidy
!.devcontainer
!.github

# Compiled Object files
*.slo
Expand Down
4 changes: 3 additions & 1 deletion include/htool/wrappers/wrapper_proto_ddm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,5 +672,7 @@ class ContinuousOperator : public HPDDM::EmptyOperator<T> {
} // namespace htool

template <typename T>
struct HPDDM::hpddm_method_id<htool::HPDDMDense<T>> { static constexpr char value = HPDDM::hpddm_method_id<HpDense<T, 'G'>>::value; };
struct HPDDM::hpddm_method_id<htool::HPDDMDense<T>> {
static constexpr char value = HPDDM::hpddm_method_id<HpDense<T, 'G'>>::value;
};
#endif

0 comments on commit 8c5349c

Please sign in to comment.