[clang] [clang-format] Add AlignConsecutiveTableGenCondOperatorColons option. (PR #82878)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 24 11:54:22 PST 2024
================
@@ -849,7 +851,12 @@ void WhitespaceManager::alignConsecutiveAssignments() {
}
void WhitespaceManager::alignConsecutiveBitFields() {
- if (!Style.AlignConsecutiveBitFields.Enabled)
+ alignConsecutiveColons(Style.AlignConsecutiveBitFields, TT_BitFieldColon);
+}
+
+void WhitespaceManager::alignConsecutiveColons(
+ const FormatStyle::AlignConsecutiveStyle &AlignStyle, TokenType Type) {
----------------
HazardyKnusperkeks wrote:
```suggestion
FormatStyle::AlignConsecutiveStyle AlignStyle, TokenType Type) {
```
No need for the reference.
https://github.com/llvm/llvm-project/pull/82878
More information about the cfe-commits
mailing list