Lines Matching full:comment
32 EXPECT_EQ("// comment", format("//comment"));
33 EXPECT_EQ("// #comment", format("//#comment"));
35 EXPECT_EQ("// comment\n"
37 format("//comment\n"
49 verifyFormat("void f(int i, // some comment (probably for i)\n"
50 " int j, // some comment (probably for j)\n"
51 " int k); // some comment (probably for k)");
53 " // some comment (probably for j)\n"
55 " // some comment (probably for k)\n"
59 " = 5; // with nicely aligned comment.");
61 verifyFormat("// Leading comment.\n"
62 "int a; // Trailing comment.");
63 verifyFormat("int a; // Trailing comment\n"
67 verifyFormat("int a; // Trailing comment\n"
69 "// Leading comment.\n"
71 verifyFormat("int a; // Comment.\n"
73 "int bbbb; // Another comment.");
75 "int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; // comment\n"
76 "int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; // comment\n"
77 "int cccccccccccccccccccccccccccccc; // comment\n"
78 "int ddd; // looooooooooooooooooooooooong comment\n"
79 "int aaaaaaaaaaaaaaaaaaaaaaa; // comment\n"
80 "int bbbbbbbbbbbbbbbbbbbbb; // comment\n"
81 "int ccccccccccccccccccc; // comment");
83 verifyFormat("#include \"a\" // comment\n"
84 "#include \"a/b/c\" // comment");
85 verifyFormat("#include <a> // comment\n"
86 "#include <a/b/c> // comment");
87 EXPECT_EQ("#include \"a\" // comment\n"
88 "#include \"a/b/c\" // comment",
90 " \"a\" // comment\n"
91 "#include \"a/b/c\" // comment"));
94 " // comment\n"
95 " VAL_A, // comment\n"
158 " bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; // Trailing comment");
160 " // Comment inside a statement.\n"
163 " // comment\n"
166 " // comment\n"
169 "bool aaaaaaaaaaaaa = // comment\n"
195 EXPECT_EQ("int i; // single line trailing comment",
196 format("int i;\\\n// single line trailing comment"));
198 verifyGoogleFormat("int a; // Trailing comment.");
222 EXPECT_EQ("lineWith(); // comment\n"
225 format("lineWith(); // comment\n"
228 EXPECT_EQ("lineWith(); // comment\n"
232 format("lineWith(); // comment\n"
236 EXPECT_EQ("lineWith(); // comment\n"
239 format("lineWith(); // comment\n"
243 EXPECT_EQ("lineWith(); // comment\n"
245 "otherLine(); // comment",
246 format("lineWith(); // comment\n"
248 "otherLine(); // comment"));
251 "otherLine(); // comment",
254 "otherLine(); // comment"));
257 "otherLine(); // comment",
260 "otherLine(); // comment"));
264 "otherLine(); // comment",
268 "otherLine(); // comment"));
269 verifyFormat("f(); // comment\n"
273 EXPECT_EQ("f(); // comment\n"
277 format("f(); // comment\n"
281 EXPECT_EQ("f(); // comment\n"
285 format("f(); // comment\n"
290 " lineWith(); // comment\n"
294 " lineWith(); // comment\n"
317 verifyFormat("if ( // This is some comment\n"
320 EXPECT_EQ("if ( // This is some comment\n"
324 format("if( // This is some comment\n"
331 // The 0-character somehow makes the lexer return a proper comment.
337 " b, // comment\n"
340 " b, // comment\n"
343 " // comment\n"
347 " // comment\n"
349 EXPECT_EQ("SomeFunction(a, b, // comment (unclear relation)\n"
351 format("SomeFunction(a, b, // comment (unclear relation)\n"
353 EXPECT_EQ("SomeFunction(a, // comment\n"
355 " c); // comment",
356 format("SomeFunction(a, // comment\n"
358 " c); // comment"));
369 " b, // comment\n"
375 " // comment\n"
381 EXPECT_EQ("// comment", format("// comment "));
382 EXPECT_EQ("int aaaaaaa, bbbbbbb; // comment",
383 format("int aaaaaaa, bbbbbbb; // comment ",
385 EXPECT_EQ("// comment\\\n", format("// comment\\\n \t \v \f "));
386 EXPECT_EQ("// comment \\\n", format("// comment \\\n \t \v \f "));
396 EXPECT_EQ("f(aaaaaaaaaaaaaaaaaaaaaaaaa, /* Trailing comment for aa... */\n"
399 "/* Trailing comment for aa... */\n"
403 " /* Leading comment for bb... */ bbbbbbbbbbbbbbbbbbbbbbbbb);",
405 "/* Leading comment for bb... */ bbbbbbbbbbbbbbbbbbbbbbbbb);"));
450 " * comment.\n"
455 " * comment.\n"
461 " * comment.\n"
468 " * comment.\n"
473 " 1. This is a comment with non-trivial formatting.\n"
478 " 1. This is a comment with non-trivial formatting.\n"
489 EXPECT_EQ("int i; /* Comment with empty...\n"
492 format("int i; /* Comment with empty...\n"
495 EXPECT_EQ("int foobar = 0; /* comment */\n"
497 " comment 1 */\n"
499 " comment 2 */\n"
501 " comment 3 */",
502 format("int foobar = 0; /* comment */\n"
504 " comment 1 */\n"
506 " comment 2 */\n"
508 " comment 3 */"));
509 EXPECT_EQ("int foobar = 0; /* comment */\n"
511 " comment */\n"
513 "comment */",
514 format("int foobar = 0; /* comment */\n"
516 "comment */\n"
518 "comment */"));
587 EXPECT_EQ("// A comment that\n"
590 format("// A comment that doesn't fit on one line",
592 EXPECT_EQ("/// A comment that\n"
595 format("/// A comment that doesn't fit on one line",
597 EXPECT_EQ("//! A comment that\n"
600 format("//! A comment that doesn't fit on one line",
611 EXPECT_EQ("if (true) // A comment that\n"
614 format("if (true) // A comment that doesn't fit on one line ",
658 EXPECT_EQ("// A comment before\n"
662 format("// A comment before a macro definition\n"
709 EXPECT_EQ("//: A comment that\n"
712 format("//: A comment that doesn't fit on one line",
722 EXPECT_EQ("// A comment\n"
726 format("// A comment that doesn't fit on one line",
728 EXPECT_EQ("/// A comment\n"
732 format("/// A comment that doesn't fit on one line",
751 // of the consecutive lines in this kind of comment:
763 // Avoid introducing a multiline comment by breaking after `\`.
823 " a comment \\\n"
827 " a comment \\\n"
833 " a comment \\\n"
838 " a comment \\\n"
854 // Keep the current level if the comment was originally not aligned with
858 " /* comment */\n"
864 " /* comment */\n"
871 " /* comment */\n"
878 " /* comment */\n"
888 " // comment\n"
897 " // comment\n"
907 " // comment in else\n"
917 " // comment in else\n"
928 " /* comment in else */\n"
938 " /* comment in else */\n"
945 // Keep the current level if there is an empty line between the comment and
949 " /* comment */\n"
956 "/* comment */\n"
966 "// comment\n"
975 "// comment\n"
985 " // comment\n"
995 " // comment\n"
1006 " // comment in else\n"
1017 "// comment in else\n"
1029 " /* comment in else */\n"
1040 "/* comment in else */\n"
1048 // Align with the preprocessor directive if the comment was originally aligned
1049 // with the preprocessor directive and there is no newline between the comment
1053 "/* comment */\n"
1059 "/* comment */\n"
1068 "// comment\n"
1077 "// comment\n"
1087 "// comment in else\n"
1097 " // comment in else\n"
1108 "/* comment in else */\n"
1118 " /* comment in else */\n"
1147 " f(); // comment\n"
1154 "// comment\n"
1161 " // comment\n"
1169 " // comment\n"
1178 " * comment that\n"
1183 "comment that "
1201 "comment that doesn't\n"
1206 "comment that doesn't "
1212 " * comment that\n"
1218 " comment that "
1244 " long comment that\n"
1252 " long comment that "
1261 " * another comment\n"
1270 " another comment"
1279 " * comment that\n"
1284 " * This is a long comment that doesn't fit on one line\n"
1290 " comment */\n"
1294 " if (something) /* This is a long comment */\n"
1299 EXPECT_EQ("/* A comment before\n"
1303 format("/* A comment before a macro definition */\n"
1307 EXPECT_EQ("/* some comment\n"
1308 " * a comment that\n"
1310 " * comment we have\n"
1312 " * comment\n"
1314 format(" /* some comment\n"
1315 " * a comment that we break\n"
1316 " * another comment we have to break\n"
1317 "* a left comment\n"
1323 " * comment\n"
1327 " * multiline block comment\n"
1362 " Macro comment \\\n"
1370 " Macro comment with a long line\n"
1375 " /* Macro comment \\\n"
1380 " /* Macro comment with a long\n"
1385 " /* Macro comment \\\n"
1390 " /* Macro comment with a long line */ \\\n"
1397 "// section comment\n"
1402 "// section comment\n"
1407 "// section comment\n"
1411 "// section comment\n"
1416 "#ifdef A // comment about A\n"
1417 " // section comment 1\n"
1418 " // section comment 2\n"
1420 "#else // comment about #else\n"
1421 " // section comment 3\n"
1454 "static SomeType type = {aaaaaaaaaaaaaaaaaaaa, /* comment */\n"
1455 " aaaaaaaaaaaaaaaaaaaa /* comment */,\n"
1456 " /* comment */ aaaaaaaaaaaaaaaaaaaa,\n"
1457 " aaaaaaaaaaaaaaaaaaaa, // comment\n"
1459 format("static SomeType type = { aaaaaaaaaaaaaaaaaaaa , /* comment */\n"
1460 " aaaaaaaaaaaaaaaaaaaa /* comment */ ,\n"
1461 " /* comment */ aaaaaaaaaaaaaaaaaaaa ,\n"
1462 " aaaaaaaaaaaaaaaaaaaa , // comment\n"
1464 verifyFormat("static SomeType type = {aaaaaaaaaaa, // comment for aa...\n"
1467 " // comment for bb....\n"
1470 "static SomeType type = {aaaaaaaaaaa, // comment for aa...\n"
1473 " // comment for bb....\n"
1487 " // Some comment\n"
1490 " // Comment after empty line\n"
1493 " // Some comment\n"
1496 " // Comment after empty line\n"
1500 " /* Some comment */\n"
1503 " /* Comment after empty line */\n"
1506 " /* Some comment */\n"
1509 " /* Comment after empty line */\n"
1513 " 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // comment\n"
1514 " 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // comment\n"
1515 " 0x00, 0x00, 0x00, 0x00}; // comment");
1519 EXPECT_EQ("if (true) { // comment about branch\n"
1520 " // comment about f\n"
1523 format("if (true) { // comment about branch\n"
1524 " // comment about f\n"
1650 // Reflow the last line of a block comment with its trailing '*/'.
1698 // Break single line block comment that are not first in the line with ' '
1769 // Break a block comment postfix if exceeding the line limit.
1808 " // comment on\n"
1811 format("int a; // Trailing comment\n"
1910 // Keep the block comment endling '*/' while reflowing.
1918 EXPECT_EQ("/* First comment\n"
1922 format("/* First comment block\n"
1928 // Don't reflow across blank comment lines.
2032 // Don't reflow comment pragmas.
2057 EXPECT_EQ("/* First comment\n"
2061 format("/* First comment block\n"
2150 // Don't reflow between different trailing comment sections.
2175 // Tricky case that has fewer lines if we reflow the comment, ending up with
2184 // Keep empty comment lines.
2436 verifyFormat("if (0) /* a comment in a strange place */ {\n"
2439 verifyFormat("if (0) /* a comment in a strange place */ {\n"
2441 "} /* another comment */ else /* comment #3 */ {\n"
2444 verifyFormat("while (0) /* a comment in a strange place */ {\n"
2447 verifyFormat("for (;;) /* a comment in a strange place */ {\n"
2450 verifyFormat("do /* a comment in a strange place */ {\n"
2452 "} /* another comment */ while (0);");
2507 EXPECT_EQ("someFunction(1, /* comment 1 */\n"
2508 " 2, /* comment 2 */\n"
2509 " 3, /* comment 3 */\n"
2512 format("someFunction (1, /* comment 1 */\n"
2513 " 2, /* comment 2 */ \n"
2514 " 3, /* comment 3 */\n"
2518 "bool aaaaaaaaaaaaa = /* comment: */ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ||\n"
2521 "bool aaaaaaaaaaaaa = /* trailing comment */\n"
2525 "bool aaaaaaaaaaaaa = /* trailing comment */\n"
2529 "int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; /* comment */\n"
2530 "int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; /* comment */\n"
2531 "int cccccccccccccccccccccccccccccc; /* comment */",
2532 format("int aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa; /* comment */\n"
2533 "int bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; /* comment */\n"
2534 "int cccccccccccccccccccccccccccccc; /* comment */"));
2687 "/* comment 3 */\n",
2691 "/* comment 3 */\n",
2753 // Align comment line sections aligned with the next token with the next
2756 "public: // public comment\n"
2757 " // comment about a\n"
2761 "public: // public comment\n"
2762 " // comment about a\n"
2767 "public: // public comment 1\n"
2768 " // public comment 2\n"
2769 " // comment 1 about a\n"
2770 " // comment 2 about a\n"
2774 "public: // public comment 1\n"
2775 " // public comment 2\n"
2776 " // comment 1 about a\n"
2777 " // comment 2 about a\n"
2781 EXPECT_EQ("int f(int n) { // comment line 1 on f\n"
2782 " // comment line 2 on f\n"
2783 " // comment line 1 before return\n"
2784 " // comment line 2 before return\n"
2785 " return n; // comment line 1 on return\n"
2786 " // comment line 2 on return\n"
2787 " // comment line 1 after return\n"
2789 format("int f(int n) { // comment line 1 on f\n"
2790 " // comment line 2 on f\n"
2791 " // comment line 1 before return\n"
2792 " // comment line 2 before return\n"
2793 " return n; // comment line 1 on return\n"
2794 " // comment line 2 on return\n"
2795 " // comment line 1 after return\n"
2799 " switch (n) { // comment line 1 on switch\n"
2800 " // comment line 2 on switch\n"
2801 " // comment line 1 before case 1\n"
2802 " // comment line 2 before case 1\n"
2803 " case 1: // comment line 1 on case 1\n"
2804 " // comment line 2 on case 1\n"
2805 " // comment line 1 before return 1\n"
2806 " // comment line 2 before return 1\n"
2807 " return 1; // comment line 1 on return 1\n"
2808 " // comment line 2 on return 1\n"
2809 " // comment line 1 before default\n"
2810 " // comment line 2 before default\n"
2811 " default: // comment line 1 on default\n"
2812 " // comment line 2 on default\n"
2813 " // comment line 1 before return 2\n"
2814 " return 2 * f(n - 1); // comment line 1 on return 2\n"
2815 " // comment line 2 on return 2\n"
2816 " // comment line 1 after return\n"
2817 " // comment line 2 after return\n"
2821 " switch (n) { // comment line 1 on switch\n"
2822 " // comment line 2 on switch\n"
2823 " // comment line 1 before case 1\n"
2824 " // comment line 2 before case 1\n"
2825 " case 1: // comment line 1 on case 1\n"
2826 " // comment line 2 on case 1\n"
2827 " // comment line 1 before return 1\n"
2828 " // comment line 2 before return 1\n"
2829 " return 1; // comment line 1 on return 1\n"
2830 " // comment line 2 on return 1\n"
2831 " // comment line 1 before default\n"
2832 " // comment line 2 before default\n"
2833 " default: // comment line 1 on default\n"
2834 " // comment line 2 on default\n"
2835 " // comment line 1 before return 2\n"
2836 " return 2 * f(n - 1); // comment line 1 on return 2\n"
2837 " // comment line 2 on return 2\n"
2838 " // comment line 1 after return\n"
2839 " // comment line 2 after return\n"
2932 "#include \"aa.h\" // comment\n"
2942 "#include \"aa.h\" // across a line without comment",
2947 "#include \"aa.h\" // two lines without comment\n"
2953 "#include \"aa.h\" // comment\n"
2958 "#include \"aaaaaa.h\" // comment",
2966 EXPECT_EQ("#include \"a.h\" // comment\n"
2970 "#include \"ab.h\" // comment\n"
2973 "#include \"abcdefg.h\" // comment",
2974 format("#include \"a.h\" // comment\n"
2978 "#include \"ab.h\" // comment\n"
2981 "#include \"abcdefg.h\" // comment",
3011 EXPECT_EQ("int foo = 12345; // comment\n"
3014 " // long comment\n"
3020 format("int foo = 12345; // comment\n"
3021 "int bar = 1234; // This is a very long comment\n"
3028 EXPECT_EQ("int foo = 12345; // comment\n"
3031 " // comment which is\n"
3036 format("int foo = 12345; // comment\n"
3037 "int bar = 1234; // This is a very long comment\n"
3044 EXPECT_EQ("int foo = 12345; // comment\n"
3046 " 1234; // This is a very long comment\n"
3050 format("int foo = 12345; // comment\n"
3051 "int bar = 1234; // This is a very long comment\n"
3058 EXPECT_EQ("int foo = 12345; // comment\n"
3060 " 1234; // This is a very long comment\n"
3064 format("int foo = 12345; // comment\n"
3065 "int bar = 1234; // This is a very long comment\n"
3102 "int c; // comment\n"
3103 "int d; // comment",
3106 "int c; // comment\n"
3107 "int d; // comment",
3112 "int c; // comment\n"
3113 "int d;// comment",
3116 "int c; // comment\n"
3117 "int d;// comment",
3123 " // comment\n"
3124 "// comment\n"
3126 "// comment",
3130 " // comment\n"
3131 "// comment\n"
3133 "// comment",
3139 " // comment\n"
3140 "// comment\n"
3142 "// comment",
3147 " // comment\n"
3148 "// comment\n"
3151 "// comment",
3176 " // comment\n"
3177 "// comment\n"
3179 "// comment",
3184 " // comment\n"
3185 "// comment\n"
3187 "// comment",
3193 EXPECT_EQ("int foo = 12345; // comment\n"
3196 " // comment which is\n"
3198 format("int foo = 12345; // comment\n"
3199 "int bar = 1234; // This is a very long comment\n"
3232 " std::string Foo = Bar; // Comment\n"
3245 " std::string Foo = Bar; // Comment\n"
3258 " std::string Foo = Bar; // Comment\n"
3271 " std::string Foo = Bar; // Comment\n"
3285 " std::string Foo = Bar; // Comment\n"
3298 " std::string Foo = Bar; // Comment\n"
3311 " std::string Foo = Bar; // Comment\n"
3324 "// Comment";
3330 "// Comment",
3339 " int aLongVariable; // with comment\n"
3348 " int aLongVariable; // with comment\n"
3357 " int aLongVariable; // with comment\n"
3364 " int aLongVariable; // with comment\n"
3371 " int aLongVariable; // with comment\n"
3378 " int aLongVariable; // with comment\n"
3385 " int aLongVariable; // with comment\n"
3391 " int aLongVariable; // with comment\n"
3398 " int aLongVariable; // with comment\n"
3407 " int aLongVariable; // with comment\n"
3415 " int aLongVariable; // with comment\n"
3422 " int aLongVariable; // with comment\n"
3429 " int aLongVariable; // with comment\n"
3436 " aLongVariable, // with comment\n"
3444 " int aLongVariable; // with comment\n"
3451 verifyFormat("auto longLambda = [] { // comment\n"
3452 " int aLongVariable; // with comment\n"
3459 verifyFormat("auto longLambdaResult = [] { // comment\n"
3460 " int aLongVariable; // with comment\n"
3468 "auto longLambdaResult = [](auto I, auto J) { // comment\n"
3469 " int aLongVariable; // with comment\n"
3480 " int aLongVariable; // with comment\n"
3482 "} /* middle comment */; // not aligned\n"
3673 verifyFormat("const /** comment comment */ A = B;",
3676 verifyFormat("const /** comment comment comment */ A =\n"
3680 EXPECT_EQ("const /** comment comment comment\n"
3681 " comment */\n"
3683 format("const /** comment comment comment comment */\n"
3690 EXPECT_EQ("# comment\n"
3692 format("#comment\n"
3695 EXPECT_EQ("# comment\n"
3697 format("# comment\n"
3700 // Breaks long comment.
3701 EXPECT_EQ("# comment comment\n"
3702 "# comment\n"
3704 format("# comment comment comment\n"
3709 " # comment comment\n"
3710 " # comment\n"
3714 "# comment comment comment\n"
3718 " # comment comment\n"
3719 " # comment\n"
3722 format("data {# comment comment comment\n"
3726 EXPECT_EQ("# comment comment\n"
3727 "# comment comment\n"
3729 format("# comment comment comment\n"
3730 "# comment\n"
3734 EXPECT_EQ("k: val # comment\n"
3735 " # comment\n"
3737 format("k:val#comment comment\n"
3741 " k: val # comment\n"
3742 " # comment\n"
3746 format("id {k:val#comment comment\n"
3906 verifyFormat("//#comment", Style);
3915 EXPECT_EQ("// #comment", format("//#comment", Style));
3925 "//Free comment without space\n"
3927 "// Free comment with 3 spaces\n"
3945 "/// A Doxygen Comment with a nested list:\n"
3961 " // In function comment\n"
3984 "// Comment to move to the left\n"
3988 "//Comment to move to the right\n"
3996 EXPECT_EQ("// Free comment without space\n"
3998 "// Free comment with 3 spaces\n"
4016 "/// A Doxygen Comment with a nested list:\n"
4032 " // In function comment\n"
4055 "// Comment to move to the left\n"
4059 "// Comment to move to the right\n"
4069 EXPECT_EQ("//#comment", format("// #comment", Style));
4070 EXPECT_EQ("//Free comment without space\n"
4072 "//Free comment with 3 spaces\n"
4090 "///A Doxygen Comment with a nested list:\n"
4106 " //In function comment\n"
4129 "//Comment to move to the left\n"
4133 "//Comment to move to the right\n"
4143 EXPECT_EQ("// Free comment without space\n"
4145 "// Free comment with 3 spaces\n"
4163 "/// A Doxygen Comment with a nested list:\n"
4179 " // In function comment\n"
4202 "// Comment to move to the left\n"
4206 "// Comment to move to the right\n"
4287 "// Comment\n"
4292 "// A comment with\n"
4298 "// Comment\n"
4306 "// A comment with\n"
4320 "//Comment\n"
4328 "//A comment with\n"
4341 "// Comment\n"
4349 "// A comment with\n"
4361 "// Comment\n"
4366 "// A comment with\n"
4373 EXPECT_EQ("// A Comment to be\n"
4377 "// A Comment to be\n"
4381 "// A Comment to be\n"
4385 "// A Comment to be\n"
4389 "// A Comment to\n"
4393 "// A Comment to\n"
4397 "// A Comment to\n"
4400 format("//A Comment to be moved\n"
4403 "// A Comment to be moved\n"
4406 "// A Comment to be moved\n"
4409 "// A Comment to be moved\n"
4412 "// A Comment to be moved\n"
4415 "// A Comment to be moved\n"
4418 "// A Comment to be moved\n"
4423 EXPECT_EQ("int i; // A Comment to be\n"
4427 "int i; // A Comment to be\n"
4431 "int i; // A Comment to be\n"
4435 "int i; // A Comment to be\n"
4439 "int i; // A Comment to be\n"
4443 "int i; // A Comment to be\n"
4447 "int i; // A Comment to be\n"
4450 format("int i;//A Comment to be moved\n"
4453 "int i;// A Comment to be moved\n"
4456 "int i;// A Comment to be moved\n"
4459 "int i;// A Comment to be moved\n"
4462 "int i;// A Comment to be moved\n"
4465 "int i;// A Comment to be moved\n"
4468 "int i;// A Comment to be moved\n"
4473 EXPECT_EQ("// Free comment without space\n"
4475 "// Free comment with 3 spaces\n"
4493 "/// A Doxygen Comment with a nested list:\n"
4509 " // In function comment\n"
4532 "// Comment to move to the left\n"
4536 "// Comment to move to the right\n"
4546 EXPECT_EQ("//Free comment without space\n"
4548 "//Free comment with 3 spaces\n"
4566 "///A Doxygen Comment with a nested list:\n"
4582 " //In function comment\n"
4605 "//Comment to move to the left\n"
4609 "//Comment to move to the right\n"
4619 EXPECT_EQ("// Free comment without space\n"
4621 "// Free comment with 3 spaces\n"
4639 "/// A Doxygen Comment with a nested list:\n"
4655 " // In function comment\n"
4678 "// Comment to move to the left\n"
4682 "// Comment to move to the right\n"