Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/clang-format/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ else
# received no arguments, find files on our own
find include/ src/ test/ examples/ \
-regextype egrep \
-type f -regex '.*\.(hpp|cpp|hpp\.in)$' \
-type f -regex '.*\.(c|cpp|cxx|h|hpp|tpp)(\.in)?$' \
| xargs clang-format-13 -i
fi
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ repos:
rev: v13.0.1
hooks:
- id: clang-format
types: [file]
files: '.*\.(c|cpp|cxx|h|hpp|tpp)(\.in)?$'
Copy link
Member Author

@ax3l ax3l Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not yet seem to work 🤔
Should be python regex: https://pre-commit.com/#regular-expressions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this works, I to also need to add .json here as we use this for json formatting as well #1222


# Autoremoves unused Python imports
- repo: https://github.com/hadialqattan/pycln
Expand Down