File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -773,10 +773,7 @@ BreakableLineCommentSection::BreakableLineCommentSection(
773
773
OriginalPrefix.resize (Lines.size ());
774
774
for (size_t i = FirstLineIndex, e = Lines.size (); i < e; ++i) {
775
775
Lines[i] = Lines[i].ltrim (Blanks);
776
- // We need to trim the blanks in case this is not the first line in a
777
- // multiline comment. Then the indent is included in Lines[i].
778
- StringRef IndentPrefix =
779
- getLineCommentIndentPrefix (Lines[i].ltrim (Blanks), Style);
776
+ StringRef IndentPrefix = getLineCommentIndentPrefix (Lines[i], Style);
780
777
assert ((TokenText.startswith (" //" ) || TokenText.startswith (" #" )) &&
781
778
" unsupported line comment prefix, '//' and '#' are supported" );
782
779
OriginalPrefix[i] = Prefix[i] = IndentPrefix;
You can’t perform that action at this time.
0 commit comments