diff options
author | Emilia Dreamer <emilia@rymiel.space> | 2022-09-19 02:47:42 +0300 |
---|---|---|
committer | Emilia Dreamer <emilia@rymiel.space> | 2022-09-19 04:04:31 +0300 |
commit | 0bf63f0d1b6b860a7134d668d3a28104c5c9afc1 (patch) | |
tree | 061bcf83b151d46c6711633cb64a771c11ee2f1c /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | 0e43f3b04d527776458df7aa1d7ce1787ff0b32f (diff) | |
download | llvm-0bf63f0d1b6b860a7134d668d3a28104c5c9afc1.zip llvm-0bf63f0d1b6b860a7134d668d3a28104c5c9afc1.tar.gz llvm-0bf63f0d1b6b860a7134d668d3a28104c5c9afc1.tar.bz2 |
[clang-format] Disallow trailing return arrows to be operators
In the following construction:
`template <typename T> requires Foo<T> || Bar<T> auto func() -> int;`
The `->` of the trailing return type was actually considered as an
operator as part of the binary operation in the requires clause, with
the precedence level of `PrecedenceArrowAndPeriod`, leading to fake
parens being inserted in strange locations, that would never be closed.
Fixes one part of https://github.com/llvm/llvm-project/issues/56213
(the rest will probably be in a separate patch)
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D134049
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
0 files changed, 0 insertions, 0 deletions