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

Add clang format configuration #9719

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

jlesquembre
Copy link
Member

Motivation

#6721 tried to automatically format the code with clang, but it was closed. There is a similar PR (#7745), but it has been open for almost a year.

In the meantime, reviews in new PRs reference #6721 or #7745, requesting to re-format the PR with .cland-format. Examples of those are #8699 (comment) and #7735 (comment).

I suggest at least adding .clang-format to the repository, it would make it easier to find and discover.

I'm not proposing a way to enforce or automatically format the code, we can do that in a different PR.

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@jlesquembre jlesquembre requested a review from edolstra as a code owner January 8, 2024 19:06
@Ericson2314 Ericson2314 requested a review from roberth January 8, 2024 19:52
@Ericson2314
Copy link
Member

This seems like a fine first step to me. It is nice to know which options best match our current style at a minimum.

@edolstra edolstra merged commit cd5fd5c into NixOS:master Jan 12, 2024
8 checks passed
@jlesquembre jlesquembre deleted the clang-format-config branch January 28, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants