Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up clang-format and add a .clangd configuration. #5075

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

fruffy
Copy link
Collaborator

@fruffy fruffy commented Dec 19, 2024

.clang-format had an erroneous GPL header. Regenerate it using clang-format -style=file -dump-config > .clang-format.

Also add a .clangd default configuration which points to the default installation directory build.

@fruffy fruffy added the infrastructure Topics related to code style and build and test infrastructure. label Dec 19, 2024
@fruffy fruffy force-pushed the fruffy/clang-format-cleanup branch from 21b4dcf to 42c3322 Compare December 19, 2024 14:55
@fruffy fruffy marked this pull request as ready for review December 19, 2024 15:43
@fruffy fruffy requested review from jafingerhut and asl December 19, 2024 15:43
.clang-format Outdated
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really want all these fine-grained settings? objc-included? Can't we simply specify Google style guide plus all small deviations we're having?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Works for me. Just need to generate a new file without the GPL header.

Copy link
Contributor

@asl asl left a comment

Choose a reason for hiding this comment

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

Much lighter now! :)

@fruffy fruffy added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit f971ca6 Dec 19, 2024
19 checks passed
@fruffy fruffy deleted the fruffy/clang-format-cleanup branch December 19, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Topics related to code style and build and test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants