[PATCH] A first step towards giving format tokens pointer identity.

Manuel Klimek klimek at google.com
Tue May 28 04:12:18 PDT 2013


Hi djasper,

With this patch, we create all tokens in one go before parsing and
pass an ArrayRef<FormatToken*> to the UnwrappedLineParser. The
UnwrappedLineParser is switched to use pointer-to-token internally.

The UnwrappedLineParser still copies the tokens into the UnwrappedLines.
This will be fixed in an upcoming patch.

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

Files:
  lib/Format/Format.cpp
  lib/Format/UnwrappedLineParser.cpp
  lib/Format/UnwrappedLineParser.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D875.1.patch
Type: text/x-patch
Size: 33468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130528/782dd81f/attachment.bin>


More information about the cfe-commits mailing list