Skip to content
  1. Oct 27, 2008
  2. Sep 29, 2008
  3. Sep 26, 2008
    • Chris Lattner's avatar
      clean up a bunch of fixme's I added, by moving · b03dc764
      Chris Lattner authored
      DirectoryLookup::DirType into SourceManager.h
      
      llvm-svn: 56692
      b03dc764
    • Chris Lattner's avatar
      Fix the rest of rdar://6243860 hopefully. This requires changing FileIDInfo · c88a23e8
      Chris Lattner authored
      to whether the fileid is a 'extern c system header' in addition to whether it
      is a system header, most of this is spreading plumbing around.  Once we have that,
      PPLexerChange bases its "file enter/exit" notifications to PPCallbacks to
      base the system header state on FileIDInfo instead of HeaderSearch.  Finally,
      in Preprocessor::HandleIncludeDirective, mirror logic in GCC: the system headerness
      of a file being entered can be set due to the #includer or the #includee.
      
      llvm-svn: 56688
      c88a23e8
  4. Aug 10, 2008
    • Nico Weber's avatar
      * Remove isInSystemHeader() from DiagClient, move it to SourceManager · 4c311643
      Nico Weber authored
      * Move FormatError() from TextDiagnostic up to DiagClient, remove now  
        empty class TextDiagnostic
      * Make DiagClient optional for Diagnostic
      
      This fixes the following problems:
      
      * -html-diags (and probably others) does now output the same set of  
        warnings as console clang does
      * nothing crashes if one forgets to call setHeaderSearch() on  
        TextDiagnostic
      * some code duplication is removed
      
      llvm-svn: 54620
      4c311643
  5. Apr 01, 2008
  6. Mar 31, 2008
  7. Mar 16, 2008
    • Chris Lattner's avatar
      Make a major restructuring of the clang tree: introduce a top-level · 7a51313d
      Chris Lattner authored
      lib dir and move all the libraries into it.  This follows the main
      llvm tree, and allows the libraries to be built in parallel.  The
      top level now enforces that all the libs are built before Driver,
      but we don't care what order the libs are built in.  This speeds
      up parallel builds, particularly incremental ones.
      
      llvm-svn: 48402
      7a51313d
  8. Feb 03, 2008
  9. Jan 25, 2008
  10. Dec 29, 2007
  11. Dec 19, 2007
  12. Dec 18, 2007
  13. Dec 13, 2007
  14. Dec 10, 2007
  15. Dec 05, 2007
  16. Dec 04, 2007
  17. Nov 10, 2007
  18. Oct 31, 2007
  19. Oct 30, 2007
  20. Oct 16, 2007
  21. Oct 11, 2007
  22. Sep 12, 2007
  23. Sep 03, 2007
  24. Aug 30, 2007
  25. Aug 02, 2007
    • Chris Lattner's avatar
      Fix a bug in my previous commit · 6a340b43
      Chris Lattner authored
      llvm-svn: 40719
      6a340b43
    • Chris Lattner's avatar
      Increase the macro id cache to look up several recent entries, not just the last one. · 04e3d20a
      Chris Lattner authored
      This is important in insane cases like the one dannyb sent me recently:
      
      #define F0(a) void a(){}
      #define F1(a) F0(a##0) F0(a##1) F0(a##2) F0(a##3) F0(a##4) F0(a##5) F0(a##6) F0(a##7)
      #define F2(a) F1(a##0) F1(a##1) F1(a##2) F1(a##3) F1(a##4) F1(a##5) F1(a##6) F1(a##7)
      #define F3(a) F2(a##0) F2(a##1) F2(a##2) F2(a##3) F2(a##4) F2(a##5) F2(a##6) F2(a##7)
      #define F4(a) F3(a##0) F3(a##1) F3(a##2) F3(a##3) F3(a##4) F3(a##5) F3(a##6) F3(a##7)
      #define F5(a) F4(a##0) F4(a##1) F4(a##2) F4(a##3) F4(a##4) F4(a##5) F4(a##6) F4(a##7)
      #define F6(a) F5(a##0) F5(a##1) F5(a##2) F5(a##3) F5(a##4) F5(a##5) F5(a##6) F5(a##7)
      F6(f)
      
      cpp is great.  :)
      
      llvm-svn: 40715
      04e3d20a
  26. Jul 24, 2007
  27. Jul 21, 2007
  28. Jul 20, 2007
    • Chris Lattner's avatar
      remove some old cruft · e60b21c0
      Chris Lattner authored
      llvm-svn: 40111
      e60b21c0
    • Chris Lattner's avatar
      improve comments, implement a trivial single-entry cache in · ca8ebc09
      Chris Lattner authored
      SourceManager::getInstantiationLoc.  With this change, every token
      expanded from a macro doesn't get its own MacroID.  :)
      
      This reduces # macro IDs in carbon.h from 16805 to 9197
      
      llvm-svn: 40108
      ca8ebc09
    • Chris Lattner's avatar
      Reimplement SourceLocation. Instead of having a · dc5c055f
      Chris Lattner authored
      fileid/offset pair, it now contains a bit discriminating between
      mapped locations and file locations.  This separates the tables for
      macros and files in SourceManager, and allows better separation of
      concepts in the rest of the compiler.  This allows us to have *many*
      macro instantiations before running out of 'addressing space'.
      
      This is also more efficient, because testing whether something is a
      macro expansion is now a bit test instead of a table lookup (which
      also used to require having a srcmgr around, now it doesn't).
      
      This is fully functional, but there are several refinements and
      optimizations left.
      
      llvm-svn: 40103
      dc5c055f
Loading