Adds SourceRange::contains(SourceLocation) allowing to know if a source location is within the boundaries of the source range.
The objective is to know if a location is included in a range.
I assumed that the boundaries of the range are both included (hence the usage of <= and >= operators)
Please let me know if any update are required (or do not hesitate to make the changes yourself).
Adds
SourceRange::contains(SourceLocation)
allowing to know if a source location is within the boundaries of the source range.The objective is to know if a location is included in a range. I assumed that the boundaries of the range are both included (hence the usage of
<=
and>=
operators)Please let me know if any update are required (or do not hesitate to make the changes yourself).