[Gardening] Extract basic source info structs from RawComment.h

This commit is contained in:
Ben Barham
2021-04-13 11:00:34 +10:00
parent eae6c00bf3
commit c54c9c7079
28 changed files with 197 additions and 127 deletions

View File

@@ -526,9 +526,9 @@ namespace {
struct DeclLocationsTableData {
uint32_t SourceFileOffset;
uint32_t DocRangesOffset;
LineColumn Loc;
LineColumn StartLoc;
LineColumn EndLoc;
SourcePosition Loc;
SourcePosition StartLoc;
SourcePosition EndLoc;
};
class USRTableInfo {
@@ -643,7 +643,7 @@ public:
original offset.
*/
uint32_t getDocRangesOffset(const Decl *D,
ArrayRef<std::pair<LineColumn, uint32_t>> DocRanges) {
ArrayRef<std::pair<SourcePosition, uint32_t>> DocRanges) {
if (DocRanges.empty()) {
return 0;
}