Skip to content

Commit b17a757

Browse files
committed
ci: exclude paper listing from clang-format hook
papers/wg21-latex/implementation.hpp is a hand-aligned illustrative listing rendered verbatim in the D4280R0 paper; clang-format would reflow it and mangle the SPDX header. Exclude it from the hook.
1 parent a4705ae commit b17a757

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ repos:
1818
hooks:
1919
- id: clang-format
2020
types_or: [c++, c]
21+
# Hand-aligned illustrative listing rendered verbatim in the paper.
22+
exclude: '^papers/wg21-latex/implementation\.hpp$'
2123

2224
# CMake linting and formatting
2325
- repo: https://github.com/BlankSpruce/gersemi-pre-commit

0 commit comments

Comments
 (0)