aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNathan Ridge <zeratul976@hotmail.com>2024-11-19 01:32:04 -0500
committerGitHub <noreply@github.com>2024-11-19 01:32:04 -0500
commit545917cb4b1c122b3626ea8d35fa7f93a44ae27f (patch)
tree3d8f3c924a10c0afba9c55ea7ebb5938c2c72323 /clang/lib/CodeGen/CodeGenModule.cpp
parent927032807dfdca5d94eb0a8707d38b605e95e407 (diff)
downloadllvm-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