summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>2017-11-07 16:16:45 +0000
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>2017-11-07 16:16:45 +0000
commitba070108a6a70bc0def7f872e72c0f9dc505a2fb (patch)
treed1ddc8c4c73ce487f3b8648aceaa14534dd9e034 /lldb/packages/Python/lldbsuite/test
parent0930ab094b2a197d99aaf460cbf3d19839e5cbec (diff)
downloadbcm5719-llvm-ba070108a6a70bc0def7f872e72c0f9dc505a2fb.tar.gz
bcm5719-llvm-ba070108a6a70bc0def7f872e72c0f9dc505a2fb.zip
[clangd] Fix opening declarations located in non-preamble inclusion
Summary: When an inclusion is not processed as part of the preamble, its path is not made into an absolute path as part of the precompiled header code (adjustFilenameForRelocatableAST in ASTWriter.cpp). Because of this, when we convert a Decl location to retrieve the file name with FileEntry->getName(), it is possible for this path to be relative. Instead, we should try to use tryGetRealPathName first which returns an absolute path. Fixes bug 35217. Reviewers: sammccall, ilya-biryukov, rwols, Nebiroth Reviewed By: sammccall Subscribers: cfe-commits, ilya-biryukov Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D39705 llvm-svn: 317585
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud