Commit 67db5fd
authored
[clang] Add Bytes/Columns types to TextDiagnostic (#165541)
In `TextDiagnostic.cpp`, we're using column- and byte indices
everywhere, but we were using integers for them which made it hard to
know what to pass where, and what was produced. To make matters worse,
that `SourceManager` considers a "column" is a byte in `TextDiagnostic`.
Add `Bytes` and `Columns` structs, which are not related so API using
them can differentiate between values interpreted columns or bytes.1 parent 98ceb45 commit 67db5fd
1 file changed
+217
-172
lines changed
0 commit comments