File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ struct IndexSymbol : IndexRelation {
66
66
SmallVector<IndexRelation, 3 > Relations;
67
67
unsigned line = 0 ;
68
68
unsigned column = 0 ;
69
- llvm:: Optional<unsigned > offset;
69
+ Optional<unsigned > offset;
70
70
71
71
IndexSymbol () = default ;
72
72
Original file line number Diff line number Diff line change @@ -585,9 +585,10 @@ class IndexSwiftASTWalker : public SourceEntityWalker {
585
585
586
586
bool indexComment (const Decl *D);
587
587
588
- std::tuple<unsigned , unsigned , unsigned > getLineColAndOffset (SourceLoc Loc) {
588
+ std::tuple<unsigned , unsigned , Optional<unsigned >>
589
+ getLineColAndOffset (SourceLoc Loc) {
589
590
if (Loc.isInvalid ())
590
- return std::make_tuple (0 , 0 , 0 );
591
+ return std::make_tuple (0 , 0 , None );
591
592
auto lineAndColumn = SrcMgr.getLineAndColumn (Loc, BufferID);
592
593
unsigned offset = SrcMgr.getLocOffsetInBuffer (Loc, BufferID);
593
594
return std::make_tuple (lineAndColumn.first , lineAndColumn.second , offset);
You can’t perform that action at this time.
0 commit comments