[clang] [clang-format] Add AlignConsecutiveTableGenCondOperatorColons option. (PR #82878)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 25 12:00:50 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:

You're right. I made the mistake thinking it was just an `enum`.

https://github.com/llvm/llvm-project/pull/82878


More information about the cfe-commits mailing list