Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
I IPPL
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 34
    • Issues 34
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • 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
None
Milestone
None
Assign milestone
Time tracking
Source branch: reformat-code