diff options
author | Nathan Ridge <zeratul976@hotmail.com> | 2024-11-19 01:32:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 01:32:04 -0500 |
commit | 545917cb4b1c122b3626ea8d35fa7f93a44ae27f (patch) | |
tree | 3d8f3c924a10c0afba9c55ea7ebb5938c2c72323 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 927032807dfdca5d94eb0a8707d38b605e95e407 (diff) | |
download | llvm-545917cb4b1c122b3626ea8d35fa7f93a44ae27f.zip llvm-545917cb4b1c122b3626ea8d35fa7f93a44ae27f.tar.gz llvm-545917cb4b1c122b3626ea8d35fa7f93a44ae27f.tar.bz2 |
[clangd] Harden incomingCalls() against possible misinterpretation of a range as pertaining to the wrong file (#111616)
`CallHierarchyIncomingCall::fromRanges` are interpreted as ranges in the
same file as the `CallHierarchyItem` representing the caller
(`CallHierarchyIncomingCall::from`).
In C/C++, it's possible for the calls to be in a different file than the caller,
as illustrated in the added test case.
With this patch, such calls are dropped, rather than their ranges being
incorrectly interpreted as pertaining to the wrong file.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions