Skip to content

Conversation

@derekbruening
Copy link
Contributor

In llvm/llvm-project#137112 clang-format changed its behavior to only recognize header guards with empty defines, breaking our formatting. We solve that by removing the superfluous "1" value from our header guard defines.

Fixes #7757

In llvm/llvm-project#137112 clang-format
changed its behavior to only recognize header guards with empty
defines, breaking our formatting.  We solve that by removing the
superfluous "1" value from our header guard defines.

Fixes #7757
@derekbruening derekbruening merged commit 5c81659 into master Dec 30, 2025
24 checks passed
@derekbruening derekbruening deleted the i7757-include-guards branch December 30, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang-format v21+ fails to identify our header guards due to non-empty define

3 participants