diff options
author | Gedare Bloom <gedare@rtems.org> | 2024-07-24 20:47:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 19:47:11 -0700 |
commit | ccae7b461be339e717d02f99ac857cf0bc7d17fc (patch) | |
tree | 6f3cf4629836a7fd4814b33db06f7e49febb7e9f /lldb/source/Plugins/ScriptInterpreter/Python | |
parent | 7e7a9069d4240d2ae619cb50eba09f948c537ce3 (diff) | |
download | llvm-ccae7b461be339e717d02f99ac857cf0bc7d17fc.zip llvm-ccae7b461be339e717d02f99ac857cf0bc7d17fc.tar.gz llvm-ccae7b461be339e717d02f99ac857cf0bc7d17fc.tar.bz2 |
[clang-format] Improve BlockIndent at ColumnLimit (#93140)
Fixes #55731
The reported formatting problems were related to ignoring deep nesting
of "simple" functions (causing #54808) and to allowing the trailing
annotation to become separated from the closing parens, which allowed a
break to occur between the closing parens and the trailing annotation.
The fix for the nesting of "simple" functions is to detect them more
carefully. "Simple" was defined in a comment as being a single
non-expression argument. I tried to stay as close to the original intent
of the implementation while fixing the various bad formatting reports.
In the process of fixing these bugs, some latent bugs were discovered
related to how JavaScript Template Strings are handled. Those are also
fixed here.
---------
Co-authored-by: Owen Pan <owenpiano@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions