[cfe-commits] [PATCH] Change the data structure used in clang-format

Daniel Jasper djasper at google.com
Tue Jan 8 05:11:48 PST 2013


Hi klimek,

This is a first step towards supporting more complex structures such as #ifs inside unwrapped lines. This patch mostly converts the array-based UnwrappedLine into a linked-list base UnwrappedLine. Future changes will allow multiple children for each Token turning the UnwrappedLine into a tree.

No functional changes intended.

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

Files:
  lib/Format/Format.cpp
  lib/Format/UnwrappedLineParser.cpp
  lib/Format/UnwrappedLineParser.h
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D268.1.patch
Type: text/x-patch
Size: 45103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130108/b323fd4a/attachment.bin>


More information about the cfe-commits mailing list