[PATCH] D116008: [clang-format] Fix wrong indentation of namespace identifiers after a concept declaration.
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 19 13:48:52 PST 2021
curdeius created this revision.
curdeius added reviewers: MyDeveloperDay, HazardyKnusperkeks, owenpan.
curdeius requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116008
Files:
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116008.395354.patch
Type: text/x-patch
Size: 4432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211219/b479d54b/attachment.bin>
More information about the cfe-commits
mailing list