Skip to content
  1. Mar 16, 2010
  2. Mar 15, 2010
    • Douglas Gregor's avatar
      Introduce a new BufferResult class to act as the return type of · 802b7760
      Douglas Gregor authored
      SourceManager's getBuffer() (and similar) operations. This abstract
      can be used to force callers to cope with errors in getBuffer(), such
      as missing files and changed files. Fix a bunch of callers to use the
      new interface.
      
      Add some very basic checks for file consistency (file size,
      modification time) into ContentCache::getBuffer(), although these
      checks don't help much until we've updated the main callers (e.g.,
      SourceManager::getSpelling()).
      
      llvm-svn: 98585
      802b7760
Loading