[PATCH] The second step in the token refactoring.

Manuel Klimek klimek at google.com
Wed May 29 07:23:57 PDT 2013


Hi djasper,

Gets rid of AnnotatedToken, putting everything into FormatToken.
FormatTokens are created once, and only referenced by pointer.
This enables multiple future features, like having tokens shared
between multiple UnwrappedLines (while there's still work to do
to fully enable that).

http://llvm-reviews.chandlerc.com/D887

Files:
  lib/Format/Format.cpp
  lib/Format/TokenAnnotator.cpp
  lib/Format/TokenAnnotator.h
  lib/Format/UnwrappedLineParser.h
  lib/Format/WhitespaceManager.cpp
  lib/Format/WhitespaceManager.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D887.1.patch
Type: text/x-patch
Size: 88485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130529/4cc1e7cb/attachment.bin>


More information about the cfe-commits mailing list