[clang] [clang-format] Add AlignConsecutiveTableGenCondOperatorColons option. (PR #82878)
Hirofumi Nakamura via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 25 06:22:03 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) {
----------------
hnakamura5 wrote:
Both are OK, but other such functions seems using const reference to pass style.
https://github.com/llvm/llvm-project/pull/82878
More information about the cfe-commits
mailing list