Description
With a simple .clang-format
:
---
AllowShortFunctionsOnASingleLine: Inline
...
clang-tools-extra-0:16.0.1-1.fc39.x86_64:
#define create_private_getter_template \
template <typename AccessTag, typename T, T value> struct PrivateGetter { \
friend constexpr auto get(AccessTag) { \
return value; \
} \
}
clang-tools-extra-0:15.0.7-2.fc37.x86_64:
#define create_private_getter_template \
template <typename AccessTag, typename T, T value> struct PrivateGetter { \
friend constexpr auto get(AccessTag) { return value; } \
}
With 15.0.7 it seems it doesn't respect the option at all.
With 16.0.1 it works better but I believe in my example it should merge into a single line.