Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • I IPPL
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • Libraries
  • IPPL
  • Merge requests
  • !155

Merged
Created Mar 01, 2023 by vinciguerra_a@vinciguerra_aDeveloper

Reformat code

  • Overview 31
  • Commits 7
  • Changes 171

Adds the .clang-format from OPAL and reformats the entire codebase with clang-format. In addition, this adds a folder for git hooks and a script that sets them up. The provided pre-commit hook runs clang-format on all changed files and stages the changes such that all modified files are reformatted before the commit is created.

Some of these formatting "improvements" likely need further tweaking in the configuration; I'll be looking into this. I'll open the MR so everyone can see what the codebase would look like using OPAL's formatting rules (as specified in the file) and so that we can more easily discuss which of these reformatting changes we like and which ones need to be changed in the configuration.

Edited Mar 14, 2023 by vinciguerra_a
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: reformat-code