Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Olm Olm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • matrix-org
  • OlmOlm
  • Merge requests
  • !33

Open
Created Jun 30, 2021 by Denis Kasak@deniskMaintainer
  • Report abuse
Report abuse

Draft: Add .clang-format file

  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 2

Our current C and C++ coding styles are not very uniform and we don't seem to be following any particular standard, even though there are some patterns we more-or-less abide by. It would be nice if we could rely on a tool to automatically ensure that code is formatted uniformly.

As a first step towards this goal, this MR attempts to reproduce our current style using clang-format. However, it still introduces quite a lot of changes since clang-format doesn't yet support dangling parentheses (where the closing parenthesis of a parameter list goes on its own line). Due to this, it's probably not yet ready for a merge, but I'm opening a MR to discuss/keep track of it.

Another option would be to abandon our current style and going with one of the more common standards (perhaps tweaking a few options).

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: wip-clang-format