Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 21407 Build 21407: arc lint + arc unit
Event Timeline
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 | 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. |
I think we should print both locations on the same line, without adding a newline after the start SLoc.