[clang] [clang-format] Handle merging functions containing only a block comment (PR #74651)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 6 13:43:30 PST 2023


================
@@ -411,9 +411,16 @@ class LineJoiner {
       }
     }
 
+    const auto *LastNonComment = TheLine->getLastNonComment();
+    assert(LastNonComment);
+    // FIXME: There are probably cases where we should use LastNonComment
----------------
owenca wrote:

No. This is new from this patch.

https://github.com/llvm/llvm-project/pull/74651


More information about the cfe-commits mailing list