[clang] [clang-format] Don't align comments over scopes (PR #68743)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 14:00:10 PDT 2023
================
@@ -182,7 +182,7 @@ TEST_F(FormatTestComments, UnderstandsSingleLineComments) {
"int a; // This is unrelated"));
EXPECT_EQ("class C {\n"
" void f() { // This does something ..\n"
- " } // awesome..\n"
+ " } // awesome..\n"
----------------
HazardyKnusperkeks wrote:
But this would work against a conscious decision. Should we change that? Or should we add `TT_FunctionRBrace` (shouldn't be hard) and exempt them from not aligning?
https://github.com/llvm/llvm-project/pull/68743
More information about the cfe-commits
mailing list