Overwritten file buffers are at the moment ignored when importing and
instead only the underlying file buffer is imported.
This patch fixes this by not going to the underlying file entry if the file has
an overwritten buffer.
Paths
| Differential D78086
[ASTImporter] Also import overwritten file buffers ClosedPublic Authored by teemperor on Apr 14 2020, 12:33 AM.
Details Summary Overwritten file buffers are at the moment ignored when importing and This patch fixes this by not going to the underlying file entry if the file has
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 14 2020, 2:36 PM Comment Actions Okay, no objections. Comment Actions
D78095 is already rewriting it. In the future we want to load the real source code in LLDB and D78095 is only the fallback code path that will be used when a file can't be found. In that case we just take the real file path with our own made-up file buffer. A follow-up patch actually implements the real file loading. But until that follow-up patch is done, D78095 is essentially what we use in LLDB to always set for every file a overwritten file buffer. Closed by commit rG9f1e81f1c0ac: [ASTImporter] Also import overwritten file buffers (authored by teemperor). · Explain WhyApr 27 2020, 4:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 260278 clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp
|