Skip to content

The (automatic) code format #794

Closed
Closed
@grahamlopez

Description

@grahamlopez

It would help to move to automated source code formatting. Some candidate examples are available at https://github.com/qmcpack/src-formatting; more explanation of these examples are in the readme for that repo.

Note that the formatter can be turned off inside the source by enclosing regions with appropriate comments (// clang-format off/on). I didn't search for everywhere this will be needed; I think we can pick them up as people run into them. We probably want try to minimize how often we use that feature (e.g. only for arrays/matrices of constants), as it adds to maintenance overhead and erodes the advantage of automation.

Let's use this issue thread to discuss which of these formats we would like to use, and any ways to tweak them.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions