Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D dune-structures
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Lukas Riedel
  • dune-structures
  • Issues
  • #1
Closed
Open
Created Apr 08, 2021 by Lukas Riedel@lukas.riedelOwner

Refactor C++ and Python code to comply to formatting guide

To achieve a consistent visual style in the code, it should adhere to style definitions.

For Python, we use PEP 8 with very slight adjustments. This is best achieved by using the black formatter in its default settings.

For C++, we use clang-format with a style the only deviates slightly from the Mozilla preset. The .clang-format settings are the following:

---
BasedOnStyle: Mozilla

# Break before braces, except for one-line statements
BreakBeforeBraces: Allman

# Do not break before assignment operators
BreakBeforeBinaryOperators: NonAssignment

The code should include this file in the top-level directory and be re-formatted accordingly.

Assignee
Assign to
Time tracking