Author: Marek Kurdej Date: 2022-02-16T13:54:55+01:00 New Revision: fdee51204848dce5e0c39db332a7c488dc5b333f
URL: https://github.com/llvm/llvm-project/commit/fdee51204848dce5e0c39db332a7c488dc5b333f DIFF: https://github.com/llvm/llvm-project/commit/fdee51204848dce5e0c39db332a7c488dc5b333f.diff LOG: [clang-format] Add test for SpacesInLineCommentPrefix. NFC. Fixes https://github.com/llvm/llvm-project/issues/52649. This was already fixed in commit https://github.com/llvm/llvm-project/commit/e967d97a35a93c883528a9672159edff05f5addb. Added: Modified: clang/unittests/Format/FormatTestComments.cpp Removed: ################################################################################ diff --git a/clang/unittests/Format/FormatTestComments.cpp b/clang/unittests/Format/FormatTestComments.cpp index 8cdca0eb5900a..c988a2869e568 100644 --- a/clang/unittests/Format/FormatTestComments.cpp +++ b/clang/unittests/Format/FormatTestComments.cpp @@ -3650,6 +3650,13 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { format("// x\n" "// y", Style)); + EXPECT_EQ( + "// loooooooooooooooooooooooooooooong\n" + "// commentcomments\n" + "// normal comments", + format("// loooooooooooooooooooooooooooooong commentcomments\n" + "// normal comments", + Style)); Style.SpacesInLineCommentPrefix = {3, 3}; EXPECT_EQ("// Lorem ipsum\n" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits