diff options
| author | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-02-14 22:25:36 +0100 |
|---|---|---|
| committer | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-02-16 22:37:32 +0100 |
| commit | d81f003ce1419aee6cfb8d26f0bca9153278872a (patch) | |
| tree | a01eb51c9406118d675b751923fdb0677226f7a6 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 014c0333b9e43ec0cd4daf1487cddbc3fc49b103 (diff) | |
| download | llvm-d81f003ce1419aee6cfb8d26f0bca9153278872a.zip llvm-d81f003ce1419aee6cfb8d26f0bca9153278872a.tar.gz llvm-d81f003ce1419aee6cfb8d26f0bca9153278872a.tar.bz2 | |
[clang-format] Fix formatting of struct-like records followed by variable declaration.
Fixes https://github.com/llvm/llvm-project/issues/24781.
Fixes https://github.com/llvm/llvm-project/issues/38160.
This patch splits `TT_RecordLBrace` for classes/enums/structs/unions (and other records, e.g. interfaces) and uses the brace type to avoid the error-prone scanning for record token.
The mentioned bugs were provoked by the scanning being too limited (and so not considering `const` or `constexpr`, or other qualifiers, on an anonymous struct variable declaration).
Moreover, the proposed solution is more efficient as we parse tokens once only (scanning being parsing too).
Reviewed By: MyDeveloperDay, HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D119785
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions
