diff options
| author | Balazs Benics <benicsbalazs@gmail.com> | 2024-05-22 17:41:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-22 17:41:31 +0200 |
| commit | 919df9d75ac2a721a8072327c803f34486884571 (patch) | |
| tree | 6cd950d734485b1e79d47f40910842da9e92f753 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h | |
| parent | c0de13b05f9905dbbc582d234214081dd410db1d (diff) | |
| download | llvm-919df9d75ac2a721a8072327c803f34486884571.zip llvm-919df9d75ac2a721a8072327c803f34486884571.tar.gz llvm-919df9d75ac2a721a8072327c803f34486884571.tar.bz2 | |
[clang][AST] Fix end location of DeclarationNameInfo on instantiated methods (#92654)
Fixes #71161
[D64087](https://reviews.llvm.org/D64087) updated some locations of the
instantiated method but forgot `DNLoc`.
`FunctionDecl::getNameInfo()` constructs a `DeclarationNameInfo` using
`Decl::Loc` as the beginning of the declaration name, and
`FunctionDecl::DNLoc` to compute the end of the declaration name. The
former was updated, but the latter was not, so
`DeclarationName::getSourceRange()` would return a range where the end
of the declaration name could come before its beginning.
Patch by Alejandro Alvarez Ayllon
Co-authored-by: steakhal
CPP-5166
Co-authored-by: Alejandro Alvarez Ayllon <alejandro.alvarez@sonarsource.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions
