HomePhabricator

[clang-format][NFC] Be more careful about the layout of FormatToken.

Authored by riccibruno on Jul 27 2020, 3:19 PM.

Description

[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