[clang] [clang-format] Don't align comments over scopes (PR #68743)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 20 21:35:40 PDT 2023
=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= <bjoern at hazardy.de>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/68743/clang at github.com>
================
@@ -3102,7 +3102,9 @@ TEST_F(FormatTestComments, DontAlignNamespaceComments) {
StringRef Input = "namespace A {\n"
" TESTSUITE(B) {\n"
" namespace C {\n"
- " namespace D {} // namespace D\n"
+ " namespace D {\n"
+ " // ...\n"
----------------
owenca wrote:
```suggestion
" namespace D { //\n"
```
To keep the `namespace` empty like before.
https://github.com/llvm/llvm-project/pull/68743
More information about the cfe-commits
mailing list