KyleVaughn / UM2

An unstructured mesh library for automated method of characteristic mesh generation
https://univeristy-of-michigan-unstructured-mesh-code.readthedocs.io/en/main/index.html#
MIT License
7 stars 2 forks source link

Add BreakAfterAttributes to clang-format, once clang-format-16 is supported #73

Closed KyleVaughn closed 1 year ago

KyleVaughn commented 1 year ago

PURE HOSTDEV [[nodiscard]] constexpr auto function() const noexcept -> int is much harder to read than PURE HOSTDEV [[nodiscard]] constexpr auto function() const noexcept -> int

KyleVaughn commented 1 year ago

Maybe we only enable clang-format for clang-16?

KyleVaughn commented 1 year ago

For now, I implemented AlwaysBreakAfterReturnType : All, which breaks after the return type. Since the return type should be auto, this gives the desired effect for the majority of functions.