Resolve "add clang-format configuration file"
Closes #617 (closed)
Merge request reports
Activity
changed milestone to %OPAL 2021.1
added Enhancement label
assigned to @gsell
- Resolved by gsell
- Resolved by gsell
- Resolved by snuverink_j
- Resolved by gsell
@gsell Can we make this setting also available for groups https://gitlab.psi.ch/OPAL/Libraries? Or do I need to add such a file for each repository?
You need a
.clang-format
file somewhere in your file-system. It starts looking for a configuration file in the directory of the file to be formatted. If there is non, it goes one directory up and so on till a configuration file is found or the top-level directory is reached.So, on your system you can do something like this. Whether it is possible on Gitlab itself - i.e. in a pipeline - I have to check.
Edited by gselladded 1 commit
- 267da80d - AlignConsecutiveAssignments: true added to .clang-format
- Resolved by kraus
- Resolved by kraus
added 2 commits