diff options
author | Ruoyu Zhong <zhongruoyu@outlook.com> | 2025-10-13 07:43:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-12 16:43:04 -0700 |
commit | 513b10df4308a4704989655241090399173c69dd (patch) | |
tree | 1f22539434eafb445b727faf5c2927861a047698 /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | 92f1af332c909e7afffb4dc1eecbfbb9d8e1ba83 (diff) | |
download | llvm-513b10df4308a4704989655241090399173c69dd.zip llvm-513b10df4308a4704989655241090399173c69dd.tar.gz llvm-513b10df4308a4704989655241090399173c69dd.tar.bz2 |
[clang-format] Fix formatting of `requires` expressions in braced initializers (#163005)
`UnwrappedLineParser::parseBracedList` had no
explicit handling for the `requires` keyword, so it would just call
`nextToken()` instead of properly parsing the `requires` expression.
This fix adds a case for `tok::kw_requires` in `parseBracedList`,
calling `parseRequiresExpression` to handle it correctly, matching the
existing behavior in `parseParens`.
Fixes https://github.com/llvm/llvm-project/issues/162984.
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions