https://bugs.llvm.org/show_bug.cgi?id=45816
Bug ID: 45816
Summary: Bit field alignment
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: dmitriy.ovdie...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
In addition to `AlignConsecutiveDeclarations` and `AlignConsecutiveAssignments`
parameters I'd like clang-format to align bit fields.
Given unformatted C++ header file:
struct Options {
bool some_field : 1;
bool some_another_field : 1;
int yet_another_field : 1;
};
And .clang-format file:
---
AlignConsecutiveDeclarations: 'true'
AlignConsecutiveAssignments: 'true'
# New parameter
AlignConsecutiveBitFields: 'true'
...
I'd like clang-format to convert my header file into:
struct Options {
bool some_field : 1;
bool some_another_field : 1;
int yet_another_field : 1;
};
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs