Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This seems like a reasonable addition. Maybe it could also provide print and printToString to more closely match the SourceLocation API?
lib/Basic/SourceLocation.cpp | ||
---|---|---|
89–93 ↗ | (On Diff #161570) | It would seem somewhat more natural to dump SourceRanges the same way we dump them in -ast-dump. (That is: use angle brackets, no newline, and omit the file name / line number / column number on the end location if it's the same as on the start location.) |
unittests/Basic/SourceManagerTest.cpp | ||
---|---|---|
189 ↗ | (On Diff #162282) | I don't know how to resolve this TODO, and somehow test a range between two files. |