[PATCH] D139211: [WIP][clang-format] Properly handle the C11 _Generic keyword.
Emilia Dreamer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 22 23:06:25 PST 2022
rymiel planned changes to this revision.
rymiel added a comment.
Going to try to make the indentation of the cases following the controlling expression not continuations, since that results in weird results such as:
#define LIMIT_MAX(T) \
_Generic( \
((T)0), \
unsigned int: UINT_MAX, \
unsigned long: ULONG_MAX, \
unsigned long long: ULLONG_MAX)
My desired output is instead:
#define LIMIT_MAX(T) \
_Generic(((T)0), \
unsigned int: UINT_MAX, \
unsigned long: ULONG_MAX, \
unsigned long long: ULLONG_MAX)
or something similar, but I'm struggling with unfamiliar parts of the codebase and taking my time getting familiar with them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139211/new/
https://reviews.llvm.org/D139211
More information about the cfe-commits
mailing list