Skip to content
Snippets Groups Projects
  1. Mar 28, 2017
    • Erik Verbruggen's avatar
      FileManager: mark virtual file entries as valid entries · 121956bd
      Erik Verbruggen authored
      The getVirtualFile method would create entries for e.g. libclang's
      CXUnsavedFile but not mark them as valid. The effect is that a lookup
      through getFile where the file name is not exactly matching the virtual
      file (e.g. through mixing slashes and backslashes on Windows) would
      result in a normal file "lookup", and re-using the file entry found
      by using the UniqueID, and overwrite the file entry fields. Because the
      lookup involves opening the file, and moving it into the file entry, the
      file is now open. The SourceManager keys its buffers on the UniqueID
      (which is still the same), so it will find an already loaded buffer.
      Because only the loading a buffer from disk will close the file, the
      FileEntry will hold on to an open file for as long as the FileManager
      is around. As the FileManager will only get destroyed at a reparse,
      you can't safe to the "leaked" and locked file on Windows.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@298905 91177308-0d34-0410-b5e6-96231b3b80d8
      121956bd
  2. Mar 21, 2017
  3. Oct 11, 2016
  4. Aug 13, 2016
  5. Jul 18, 2016
  6. Jun 13, 2016
  7. Jun 04, 2016
  8. Jun 03, 2016
  9. Apr 12, 2016
  10. Feb 01, 2016
  11. Dec 09, 2015
  12. Nov 26, 2015
  13. Nov 09, 2015
  14. Oct 20, 2015
  15. Aug 04, 2015
  16. Jul 31, 2015
  17. Jul 30, 2015
  18. Jul 17, 2015
  19. Jul 09, 2015
  20. Jul 08, 2015
  21. Jul 07, 2015
  22. Mar 18, 2015
    • Yaron Keren's avatar
      Remove many superfluous SmallString::str() calls. · 9bd91b68
      Yaron Keren authored
      Now that SmallString is a first-class citizen, most SmallString::str()
      calls are not required. This patch removes a whole bunch of them, yet
      there are lots more.
      
      There are two use cases where str() is really needed:
      1) To use one of StringRef member functions which is not available in
      SmallString.
      2) To convert to std::string, as StringRef implicitly converts while 
      SmallString do not. We may wish to change this, but it may introduce
      ambiguity.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232622 91177308-0d34-0410-b5e6-96231b3b80d8
      9bd91b68
  23. Dec 11, 2014
  24. Nov 19, 2014
  25. Oct 26, 2014
  26. Sep 08, 2014
  27. Aug 26, 2014
  28. Aug 13, 2014
  29. Aug 11, 2014
  30. Aug 10, 2014
  31. Jul 19, 2014
Loading