Skip to content
Snippets Groups Projects
  1. Jan 07, 2013
  2. Jan 05, 2013
    • Manuel Klimek's avatar
      Fixes parsing of hash tokens in the middle of a line. · f6fd00b1
      Manuel Klimek authored
      To parse # correctly, we need to know whether it is the first token in a
      line - we can deduct this either from the whitespace or seeing that the
      token is the first in the file - we already calculate this information.
      This patch moves the identification of the first token into the
      getNextToken method and stores it inside the FormatToken, so the
      UnwrappedLineParser can stay independent of the SourceManager.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171640 91177308-0d34-0410-b5e6-96231b3b80d8
      f6fd00b1
    • Manuel Klimek's avatar
      Various fixes to clang-format's macro handling. · d4397b99
      Manuel Klimek authored
      Some of this is still pretty rough (note the load of FIXMEs), but it is
      strictly an improvement and fixes various bugs that were related to
      macro processing but are also imporant in non-macro use cases.
      
      Specific fixes:
      - correctly puts espaced newlines at the end of the line
      - fixes counting of white space before a token when escaped newlines are
        present
      - fixes parsing of "trailing" tokens when eof() is hit
      - puts macro parsing orthogonal to parsing other structure
      - general support for parsing of macro definitions
      
      Due to the fix to format trailing tokens, this change also includes a
      bunch of fixes to the c-index tests.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171556 91177308-0d34-0410-b5e6-96231b3b80d8
      d4397b99
  3. Jan 04, 2013
  4. Jan 02, 2013
  5. Dec 24, 2012
  6. Dec 23, 2012
  7. Dec 21, 2012
  8. Dec 20, 2012
Loading