diff options
author | Owen Pan <owenpiano@gmail.com> | 2022-12-03 07:16:32 -0800 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2022-12-04 12:01:26 -0800 |
commit | e33243c950ac40d027ad8facbf7ccf0624604a16 (patch) | |
tree | 421e3474aaced49f538b6255b3a4371575a14fa0 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 4f33339fb4d9420230fbc6b297d8b1e54c41d011 (diff) | |
download | llvm-e33243c950ac40d027ad8facbf7ccf0624604a16.zip llvm-e33243c950ac40d027ad8facbf7ccf0624604a16.tar.gz llvm-e33243c950ac40d027ad8facbf7ccf0624604a16.tar.bz2 |
[clang-format] Link the braces of a block in UnwrappedLineParser
This includes TT_MacroBlockBegin and TT_MacroBlockEnd as well.
We can no longer use MatchingParen of FormatToken as an indicator
to mark optional braces. Instead, we directly set Optional of an
l_brace first and reset it later if it turns out that the braces
are not optional.
Also added a test case for deeply nested loops.
Differential Revision: https://reviews.llvm.org/D139257
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions