Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Nektar Nektar
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 90
    • Issues 90
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 60
    • Merge requests 60
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Nektar
  • NektarNektar
  • Merge requests
  • !1353

Reformat all Nektar++ libraries using clang-format

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Dave Moxey requested to merge tidy/libutilities into master Jul 06, 2022
  • Overview 1
  • Commits 25
  • Pipelines 13
  • Changes 247+

Issue/feature addressed

The formatting of the code is inconsistent and does not comply with the documented coding guidelines. The formatting of new additions or modifications is challenging as it is desirable to have consistent formatting within a file, yet different files follow different styles. This therefore prevents us transitioning to a well-defined coding standard.

Proposed solution

Reformat the whole library in one go and require new merge requests to also complete code formatting on the library.

Implementation

The code was reformatted using clang-format v11. A new CI job has been added to verify that the code format is compliant (i.e. no further changes are proposed by running clang-format on it).

Tests

Not applicable.

Notes

There is a potential risk that different versions of clang-format will lead to slightly different formatting. We may need to revisit this if it causes an issue.

Checklist

  • Functions and classes, or changes to them, are documented.
  • User guide/documentation is updated.
  • Changelog is updated.
  • Suitable tests added for new functionality.
  • Newly added files are correctly formatted.
  • License added to any new files.
  • No extraneous files have been added (e.g. compiler output or test data files).
Edited Jul 13, 2022 by Chris Cantwell
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: tidy/libutilities