Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

Improved FileID import. #588

Closed balazske closed 5 years ago

balazske commented 5 years ago

At import of FileID sometimes an existing directory entry and filename is encountered, but the filename points to a non-existing file. In this case try with creating the file from memory buffer instead of return an error. (I do not know what exactly happens but this fixes some cases when the FileID could not be imported on macOS.)

martong commented 5 years ago

@whisperity Could you take a look? It's about virtual files and may be connected to LLDB's filesystem handling you've already seen.

martong commented 5 years ago

Looks good to me, but let's wait for @whisperity's comments.

balazske commented 5 years ago

Upstream review created: https://reviews.llvm.org/D57590