Skip to content
  • Zhanyong Wan's avatar
    Improves Clang's virtual file handling. · e1dd3e2c
    Zhanyong Wan authored
    This patch contains:
    
    - making some of the existing comments more accurate in the presence
    of virtual files/directories.
    
    - renaming some private data members of FileManager to match their roles better.
    
    - creating 'DirectorEntry's for the parent directories of virtual
    files, such that we can tell whether two virtual files are from the
    same directory.  This is useful for injecting virtual files whose
    directories don't exist in the real file system.
    
    - minor clean-ups and adding comments for class
    FileManager::UniqueDirContainer and FileManager::UniqueFileContainer.
    
    - adding statistics on virtual files to FileManager::PrintStats().
    
    - adding unit tests to verify the existing and new behavior of FileManager.
    
    llvm-svn: 125384
    e1dd3e2c
Loading