diff options
author | Viljar Indus <indus@adacore.com> | 2024-08-30 14:22:16 +0300 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-09-10 09:44:10 +0200 |
commit | 5b701ee737c41cd0ca54f1343620170d92344e6a (patch) | |
tree | 39fe4ff7f1b32335c52db57a6e686631acc13ad0 /gcc/tree-vect-patterns.cc | |
parent | ac957a621cf1e9beeb52695250b7600ed066448f (diff) | |
download | gcc-5b701ee737c41cd0ca54f1343620170d92344e6a.zip gcc-5b701ee737c41cd0ca54f1343620170d92344e6a.tar.gz gcc-5b701ee737c41cd0ca54f1343620170d92344e6a.tar.bz2 |
ada: Normalize span generation on different platforms
The total number of characters on a source code line
is different on Windows and Linux based systems
(CRLF vs LF endings). Use the last non line change
character to adjust printing the spans that go over
the end of line.
gcc/ada/
* diagnostics-pretty_emitter.adb (Get_Last_Line_Char): New. Get
the last non line change character. Write_Span_Labels use the
adjusted line end pointer to calculate the length of the span.
Diffstat (limited to 'gcc/tree-vect-patterns.cc')
0 files changed, 0 insertions, 0 deletions