While we have a central .clang-format file for the tutorials, we also have such a file for the OpenFOAM solver in the partitioned heat conduction case. We need this mainly because the default format moves around header inclusions, which breaks OpenFOAM code (we need to set SortIncludes: false). This is already a duplicate of the file used in the OpenFOAM adapter, and other PRs are introducing more duplication (such as #551).
We could maybe move the OpenFOAM-specific file to tools/ for now, and link to it from the various directories.
Note that we are also working on a community proposal, which we could maybe one day import.
While we have a central
.clang-formatfile for the tutorials, we also have such a file for the OpenFOAM solver in the partitioned heat conduction case. We need this mainly because the default format moves around header inclusions, which breaks OpenFOAM code (we need to setSortIncludes: false). This is already a duplicate of the file used in the OpenFOAM adapter, and other PRs are introducing more duplication (such as #551).We could maybe move the OpenFOAM-specific file to
tools/for now, and link to it from the various directories.Note that we are also working on a community proposal, which we could maybe one day import.