[clang-format][NFC] Be more careful about the layout of FormatToken.
authorBruno Ricci <riccibrun@gmail.com>
Mon, 27 Jul 2020 22:19:02 +0000 (23:19 +0100)
committerBruno Ricci <riccibrun@gmail.com>
Tue, 28 Jul 2020 09:30:28 +0000 (10:30 +0100)
commitf5acd11d2c0ea228452aa5ed3abbc2c502009d56
tree47d8d94560817cc558aeaad0507fa7892d1c9538
parente2f5444c9ce2e0558a69fb32bd001017244eeebc
[clang-format][NFC] Be more careful about the layout of FormatToken.

The underlying ABI forces FormatToken to have a lot of padding.

Currently (on x86-64 linux) `sizeof(FormatToken) == 288`. After this patch
`sizeof(FormatToken) == 232`.

No functional changes.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D84306
clang/lib/Format/ContinuationIndenter.cpp
clang/lib/Format/Format.cpp
clang/lib/Format/FormatToken.cpp
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/WhitespaceManager.cpp