Skip to content

Commit

Permalink
Fix formatting under clang-format >=19.1
Browse files Browse the repository at this point in the history
After pre-commit bumped our clang-format to 19.1.0 it started formatting
some files differently (and incorrectly).

It turns out it's due to missing AttributeMacros config. Previous
clang-format versions were more lenient about it.

See llvm/llvm-project#94184
  • Loading branch information
MiKom committed Oct 17, 2024
1 parent 3d9404a commit 0593542
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ BraceWrapping:
IndentBraces: false

CommentPragmas: '/\*(.+\n.+)+\*/'
AttributeMacros: [KDFOUNDATION_API, KDGUI_API, KDUTILS_EXPORT]

0 comments on commit 0593542

Please sign in to comment.