diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2022-03-23 15:22:47 +0100 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2022-03-24 15:19:25 +0100 |
commit | 50f4f32b56688d8cdeff5cda0982f19863093cd5 (patch) | |
tree | 6aeef386d2e427fc4cdcdf5acaaae25ae79a21a4 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | c6a9ce2b6b746161ea5ed8aaf9e0c4b23ffb87b3 (diff) | |
download | llvm-50f4f32b56688d8cdeff5cda0982f19863093cd5.zip llvm-50f4f32b56688d8cdeff5cda0982f19863093cd5.tar.gz llvm-50f4f32b56688d8cdeff5cda0982f19863093cd5.tar.bz2 |
[clangd] Retain main file fixes attached to diags from preamble
Clangd ignores fixits if the diagnsotics is outside the main file (e.g.
a note on a declaration from a header), but the fix might still be inside the
main file (e.g. change the function call).
This patch changes the logic to retain fixes that touch main file, if the
diagnostic owning them is still inside main file, even if they are attached to a
note outside the main file.
Differential Revision: https://reviews.llvm.org/D122315
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions