Skip to content
  1. Dec 09, 2010
  2. Dec 02, 2010
  3. Nov 29, 2010
  4. Nov 23, 2010
  5. Nov 21, 2010
  6. Nov 03, 2010
    • Argyrios Kyrtzidis's avatar
      Implement -working-directory. · 71731d6b
      Argyrios Kyrtzidis authored
      When -working-directory is passed in command line, file paths are resolved relative to the specified directory.
      This helps both when using libclang (where we can't require the user to actually change the working directory)
      and to help reproduce test cases when the reproduction work comes along.
      
      --FileSystemOptions is introduced which controls how file system operations are performed (currently it just contains
       the working directory value if set).
      --FileSystemOptions are passed around to various interfaces that perform file operations.
      --Opening & reading the content of files should be done only through FileManager. This is useful in general since
       file operations will be abstracted in the future for the reproduction mechanism.
      
      FileSystemOptions is independent of FileManager so that we can have multiple translation units sharing the same
      FileManager but with different FileSystemOptions.
      
      Addresses rdar://8583824.
      
      llvm-svn: 118203
      71731d6b
  7. Aug 24, 2010
    • Chris Lattner's avatar
      fix PR7953 - Windows filename are case insensitive: · 84602249
      Chris Lattner authored
      #pragma once wasn't working on win32 if the header file was included
      using a different case.
      I tracked down  the problem to the fact that clang::FileManager was
      caching files using case sensitive string (UniqueFiles) on Windows.
      
      I changed FileManager to cache filename in lower case only.
      Doesn't affect UNIX because UNIX uses Inode to uniquely identify files.
      
      unix doesn't use this codepath.
      
      Analysis and patch by Francois Pichet!
      
      llvm-svn: 111866
      84602249
  8. Jul 27, 2010
  9. Jul 15, 2010
  10. Dec 18, 2009
  11. Dec 11, 2009
    • Daniel Dunbar's avatar
      FileManager: Do not cache failed stats, it is easy to construct common · 2f1a6c11
      Daniel Dunbar authored
      inconsistent situations if we do, and they are not important for PCH performance
      (which currently only needs the stats to construct the initial FileManager
      entries).
       - No test case, sorry, the machinations are too involved.
      
      This occurs when, for example, the build makes a PCH file and has a header map
      or a -I for a directory that does not yet exist. It is possible we will cache
      the negative stat on that directory, and then in the build we will never find
      header files inside that dir.
      
      For PCH we don't need these stats anyway for performance, so this also makes PCH
      files smaller w/ no loss. I hope to eventually eliminate the stat cache
      entirely.
      
      llvm-svn: 91082
      2f1a6c11
  12. Dec 02, 2009
    • Douglas Gregor's avatar
      Extend -remap-file=from;to to permit mapping from a non-existent · 407e2124
      Douglas Gregor authored
      file. This is accomplished by introducing the notion of a "virtual"
      file into the file manager, which provides a FileEntry* for a named
      file whose size and modification time are known but which may not
      exist on disk.
      
      Added a cute little test that remaps both a .c file and a .h file it
      includes to alternative files.
      
      llvm-svn: 90329
      407e2124
  13. Oct 16, 2009
  14. Sep 18, 2009
  15. Sep 09, 2009
  16. Sep 05, 2009
  17. Aug 24, 2009
  18. Aug 23, 2009
  19. Aug 12, 2009
  20. Apr 27, 2009
  21. Apr 22, 2009
  22. Feb 12, 2009
    • Ted Kremenek's avatar
      FileManager: · 5d7e2e17
      Ted Kremenek authored
      - set the 'StatSysCallCache' object using a setter method instead of
        FileManager's constructor. This allows the cache to be installed after the
        FileManager object is created.
      - Add 'file mode' to FileEntry (useful for stat caching)
      
      llvm-svn: 64351
      5d7e2e17
    • Chris Lattner's avatar
      search and replaceo? · 882018b8
      Chris Lattner authored
      llvm-svn: 64348
      882018b8
    • Ted Kremenek's avatar
      Add lightweight shim "clang::StatSysCallCache" that caches 'stat' system calls · c8b740ea
      Ted Kremenek authored
      for use by FileManager. FileManager now takes a StatSysCallCache* in its
      constructor (which defaults to NULL). This will be used for evaluating whether
      or not caching 'stat' system calls in PTH is a performance win. This shim adds
      no observable performance impact in the case where the 'StatSysCallCache*' is
      null.
      
      llvm-svn: 64345
      c8b740ea
  23. Jan 28, 2009
Loading