[all-commits] [llvm/llvm-project] 960712: [clang-format] Fix wrong indentation of namespace ...
Marek Kurdej via All-commits
all-commits at lists.llvm.org
Mon Dec 20 00:13:51 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 960712ccc7103ded3d95e10c61516126836a1eba
https://github.com/llvm/llvm-project/commit/960712ccc7103ded3d95e10c61516126836a1eba
Author: Marek Kurdej <marek.kurdej+llvm.org at gmail.com>
Date: 2021-12-20 (Mon, 20 Dec 2021)
Changed paths:
M clang/lib/Format/UnwrappedLineParser.cpp
M clang/unittests/Format/FormatTest.cpp
Log Message:
-----------
[clang-format] Fix wrong indentation of namespace identifiers after a concept declaration.
Before this patch, the code:
```
template <class T>
concept a_concept = X<>;
namespace B {
struct b_struct {};
} // namespace B
```
with config:
```
NamespaceIndentation: None
```
was wrongly indented inside namespace B, giving:
```
template <class T>
concept a_concept = X<>;
namespace B {
struct b_struct {};
} // namespace B
```
Fixes https://github.com/llvm/llvm-project/issues/50645
Reviewed By: MyDeveloperDay, owenpan
Differential Revision: https://reviews.llvm.org/D116008
More information about the All-commits
mailing list