File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1272,6 +1272,10 @@ bool ModelASTWalker::processComment(CharSourceRange Range) {
1272
1272
if (NewLinePos != StringRef::npos) {
1273
1273
Text = Text.substr (0 , NewLinePos);
1274
1274
}
1275
+ if (Text.endswith (" */" )) {
1276
+ Text = Text.drop_back (2 );
1277
+ }
1278
+ Text = Text.rtrim ();
1275
1279
1276
1280
CharSourceRange BeforeMarker{ SM, Range.getStart (), Loc };
1277
1281
CharSourceRange Marker (Loc, Text.size ());
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ func f(x: Int) -> Int {
36
36
37
37
38
38
39
- /* FIXME: blah*/
39
+ /* FIXME: blah */
40
40
41
- // CHECK: <comment-block>/* <comment-marker>FIXME: blah*/ </comment-marker></comment-block>
41
+ // CHECK: <comment-block>/* <comment-marker>FIXME: blah</comment-marker> */ </comment-block>
42
42
43
43
/*
44
44
* FIXME: blah
You can’t perform that action at this time.
0 commit comments