[all-commits] [llvm/llvm-project] 8554a5: [clang][Diagnostics] Fix diagnostic line numbers
Timm Bäder via All-commits
all-commits at lists.llvm.org
Fri Jun 30 01:57:40 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8554a55d041f2c7de329adda538cadf7eeb6e8a8
https://github.com/llvm/llvm-project/commit/8554a55d041f2c7de329adda538cadf7eeb6e8a8
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2023-06-30 (Fri, 30 Jun 2023)
Changed paths:
M clang/lib/Frontend/TextDiagnostic.cpp
M clang/test/Misc/diag-style.cpp
Log Message:
-----------
[clang][Diagnostics] Fix diagnostic line numbers
The first line of the code snippet we print is potentially lower than
the caret line, so handle that case.
Fixes #63524
Differential Revision: https://reviews.llvm.org/D153849
More information about the All-commits
mailing list