File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct SingleRawComment {
32
32
unsigned Kind : 8 ;
33
33
unsigned StartColumn : 16 ;
34
34
unsigned StartLine;
35
- const unsigned EndLine;
35
+ unsigned EndLine;
36
36
37
37
SingleRawComment (CharSourceRange Range, const SourceManager &SourceMgr);
38
38
SingleRawComment (StringRef RawText, unsigned StartColumn);
Original file line number Diff line number Diff line change @@ -57,11 +57,11 @@ static SingleRawComment::CommentKind getCommentKind(StringRef Comment) {
57
57
SingleRawComment::SingleRawComment (CharSourceRange Range,
58
58
const SourceManager &SourceMgr)
59
59
: Range(Range), RawText(SourceMgr.extractText(Range)),
60
- Kind(static_cast <unsigned >(getCommentKind(RawText))),
61
- EndLine(SourceMgr.getLineNumber(Range.getEnd())) {
60
+ Kind(static_cast <unsigned >(getCommentKind(RawText))) {
62
61
auto StartLineAndColumn = SourceMgr.getLineAndColumn (Range.getStart ());
63
62
StartLine = StartLineAndColumn.first ;
64
63
StartColumn = StartLineAndColumn.second ;
64
+ EndLine = SourceMgr.getLineNumber (Range.getEnd ());
65
65
}
66
66
67
67
SingleRawComment::SingleRawComment (StringRef RawText, unsigned StartColumn)
You can’t perform that action at this time.
0 commit comments