https://bugs.llvm.org/show_bug.cgi?id=51860
Bug ID: 51860
Summary: Add style to AlignConsecutiveStyle to
AlignConsecutiveDeclarations only on function
parameters
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
In mutter and many other GNOME projects we want to have aligned delclarations
only for function parameters, while we don't want to keep all the struct and
function declarations aligned.
This is currently not possible with clang-format, as the only way to have
something like:
```
static MetaDeviceFile *
meta_kms_impl_device_open_device_file (MetaKmsImplDevice *impl_device,
const char *path,
GError **error);
```
Needs AlignConsecutiveDeclarations, but then we'd also have:
```
drmModePropertyRes *drm_prop;
MetaKmsProp *prop;
```
While we don't want `prop` to be aligned.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs