diff options
author | Emilia Dreamer <emilia@rymiel.space> | 2022-09-19 02:49:58 +0300 |
---|---|---|
committer | Emilia Dreamer <emilia@rymiel.space> | 2022-09-19 04:04:31 +0300 |
commit | 8dab452740007e03c963b349e716068eac2b25a0 (patch) | |
tree | eec90a9d5339f9b9a3e96e95c2404ce7618c34b9 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | 0bf63f0d1b6b860a7134d668d3a28104c5c9afc1 (diff) | |
download | llvm-8dab452740007e03c963b349e716068eac2b25a0.zip llvm-8dab452740007e03c963b349e716068eac2b25a0.tar.gz llvm-8dab452740007e03c963b349e716068eac2b25a0.tar.bz2 |
[clang-format] Disallow requires clauses to become function declarations
There already exists logic to disallow requires *expressions* to be
treated as function declarations, but this expands it to include
requires *clauses*, when they happen to also be parenthesized.
Previously, in the following case:
```
template <typename T>
requires(Foo<T>)
T foo();
```
The line with the requires clause was actually being considered as the
line with the function declaration due to the parentheses, and the
*real* function declaration on the next line became a trailing
annotation
(Together with https://reviews.llvm.org/D134049) Fixes https://github.com/llvm/llvm-project/issues/56213
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D134052
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
0 files changed, 0 insertions, 0 deletions