Skip to content

Set up CI and pre-commit hooks for clang-format #2489

@sharadhr

Description

@sharadhr

Essentially the title. For example, the LLVM project has a CI workflow that checks if the PR is correctly formatted, and what fix to apply. I understand git clang-format is also a supported subcommand of git, so we could find some ways to prevent badly-formatted code from even being committed, let alone pushed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions