Skip to content
Snippets Groups Projects
  1. Sep 10, 2010
  2. Sep 08, 2010
  3. Mar 18, 2010
    • Douglas Gregor's avatar
      Introduce the notion of a "preprocessing record", which keeps track of · 4ae8f298
      Douglas Gregor authored
      the macro definitions and macro instantiations that are found
      during preprocessing. Preprocessing records are *not* generated by
      default; rather, we provide a PPCallbacks subclass that hooks into the
      existing callback mechanism to record this activity.
      
      The only client of preprocessing records is CIndex, which keeps track
      of macro definitions and instantations so that they can be exposed via
      cursors. At present, only token annotation uses these facilities, and
      only for macro instantiations; both will change in the near
      future. However, with this change, token annotation properly annotates
      macro instantiations that do not produce any tokens and instantiations
      of macros that are later undef'd, improving our consistency.
      
      Preprocessing directives that are not macro definitions are still
      handled by clang_annotateTokens() via re-lexing, so that we don't have
      to track every preprocessing directive in the preprocessing record.
      
      Performance impact of preprocessing records is still TBD, although it
      is limited to CIndex and therefore out of the path of the main compiler.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98836 91177308-0d34-0410-b5e6-96231b3b80d8
      4ae8f298
  4. Jul 15, 2009
  5. Mar 17, 2009
    • Douglas Gregor's avatar
      Build system changes to use TableGen to generate the various · a393e9ee
      Douglas Gregor authored
      diagnostics. This builds on the patch that Sebastian committed and
      then revert. Major differences are:
      
        - We don't remove or use the current ".def" files. Instead, for now,
          we just make sure that we're building the ".inc" files.
        - Fixed CMake makefiles to run TableGen and build the ".inc" files
          when needed. Tested with both the Xcode and Makefile generators
          provided by CMake, so it should be solid.
        - Fixed normal makefiles to handle out-of-source builds that involve
          the ".inc" files.
      
      I'll send a separate patch to the list with Sebastian's changes that
      eliminate the use of the .def files.
      
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67058 91177308-0d34-0410-b5e6-96231b3b80d8
      a393e9ee
  6. Feb 13, 2009
  7. Nov 19, 2008
  8. Oct 26, 2008
Loading