openPMD / openPMD-api

:floppy_disk: C++ & Python API for Scientific I/O
https://openpmd-api.readthedocs.io
GNU Lesser General Public License v3.0
142 stars 51 forks source link

Add .clang-format file #1024

Open eschnett opened 3 years ago

eschnett commented 3 years ago

I like using clang-format to format source files. This takes much of the tedium out of editing C++ files.

Would you consider adding a .clang-format file to the repo? This would define your preferred indentation style.

Ideally, this would be used for all source files. To avoid churn, one could begin to use this only to format newly added files, or newly added functions.

franzpoeschel commented 3 years ago

I've started experimenting with this on #1032.

ax3l commented 3 years ago

Sounds good to me, let's iterate in the PR.

ax3l commented 3 years ago

Found today: CMake targets https://github.com/TheLartians/Format.cmake