diff options
author | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2021-12-22 20:41:20 +0100 |
---|---|---|
committer | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2021-12-23 08:22:12 +0100 |
commit | f66d602c3f58bd8a312c79bb404eac9dabf1a730 (patch) | |
tree | ea025e74f7f56e5be89bb889d7de29e19e757c3d /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | ba948c5a9c524b46e6c1f31090f0b85275947867 (diff) | |
download | llvm-f66d602c3f58bd8a312c79bb404eac9dabf1a730.zip llvm-f66d602c3f58bd8a312c79bb404eac9dabf1a730.tar.gz llvm-f66d602c3f58bd8a312c79bb404eac9dabf1a730.tar.bz2 |
[clang-format] Fix wrong indentation after trailing requires clause.
Fixes https://github.com/llvm/llvm-project/issues/52834.
Before this patch, clang-format would wrongly parse top-level entities (e.g. namespaces) and format:
```
template<int I>
constexpr void foo requires(I == 42) {}
namespace ns {
void foo() {}
} // namespace ns
```
into:
``````
template<int I>
constexpr void foo requires(I == 42) {}
namespace ns {
void foo() {}
} // namespace ns
```
with configuration:
```
NamespaceIndentation: None
````
Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D116183
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions