File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ class SourceManager {
169169
170170 // / Returns a buffer ID for a previously added buffer with the given
171171 // / buffer identifier, or None if there is no such buffer.
172- Optional<unsigned > getIDForBufferIdentifier (StringRef BufIdentifier);
172+ Optional<unsigned > getIDForBufferIdentifier (StringRef BufIdentifier) const ;
173173
174174 // / Returns the identifier for the buffer with the given ID.
175175 // /
Original file line number Diff line number Diff line change @@ -152,9 +152,8 @@ SourceManager::getVirtualFile(SourceLoc Loc) const {
152152 return nullptr ;
153153}
154154
155-
156- Optional<unsigned > SourceManager::getIDForBufferIdentifier (
157- StringRef BufIdentifier) {
155+ Optional<unsigned >
156+ SourceManager::getIDForBufferIdentifier (StringRef BufIdentifier) const {
158157 auto It = BufIdentIDMap.find (BufIdentifier);
159158 if (It == BufIdentIDMap.end ())
160159 return None;
You can’t perform that action at this time.
0 commit comments