aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/WhitespaceManager.cpp
diff options
context:
space:
mode:
authorTakuya Shimizu <shimizu2486@gmail.com>2023-09-05 12:12:42 +0900
committerGitHub <noreply@github.com>2023-09-05 12:12:42 +0900
commitef5217b3c0dcbb58927fe43400b6d1faa677bf98 (patch)
tree31410f85f631e8991ff6a78e5d37004b957166c3 /clang/lib/Format/WhitespaceManager.cpp
parent880f39af6115184ccd1950ff263b7c43993cd438 (diff)
downloadllvm-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