diff options
| author | Nathan Sidwell <nathan@acm.org> | 2024-08-16 21:05:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-16 21:05:08 -0400 |
| commit | 4cf9a4266167c686e7e405ead5d6c1cd389eeca5 (patch) | |
| tree | 1df0ea4d37ad3836bf865583cf48ead698daee14 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | 8d8f56da3038dd8e36713f8a4926aeffd0f1f80b (diff) | |
[clang-format] Adjust requires clause wrapping (#101550) (#102078)
Address #101550 by adding OwnLineWithBrace option for RequiresClausePosition. This permits placing a following '{' on the same line as the requires clause.
Thus, instead of:
```
bool Foo ()
requires(true)
{
return true;
}
```
we have:
```
bool Foo ()
requires(true) {
return true;
}
```
If the function body is empty, we'll get:
```
bool Foo ()
requires(true) {}
```
I attempted to get a line break between the open and close braces, but
failed. Perhaps that's fine -- it's rare and only happens in the empty
body case.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
