diff options
author | Takuya Shimizu <shimizu2486@gmail.com> | 2023-09-05 12:12:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-05 12:12:42 +0900 |
commit | ef5217b3c0dcbb58927fe43400b6d1faa677bf98 (patch) | |
tree | 31410f85f631e8991ff6a78e5d37004b957166c3 /clang/lib/Format/WhitespaceManager.cpp | |
parent | 880f39af6115184ccd1950ff263b7c43993cd438 (diff) | |
download | llvm-ef5217b3c0dcbb58927fe43400b6d1faa677bf98.zip llvm-ef5217b3c0dcbb58927fe43400b6d1faa677bf98.tar.gz llvm-ef5217b3c0dcbb58927fe43400b6d1faa677bf98.tar.bz2 |
[clang][Diagnostics] Fix wrong line number display (#65238)
When the caret location is lower than the lowest source range, clang is
printing wrong line numbers. The first line number should consider caret
location line even when there are source ranges provided.
Current wrong line example: https://godbolt.org/z/aj4qEjzs4
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
0 files changed, 0 insertions, 0 deletions