]> granicus.if.org Git - clang/commit
Change the data structure used in clang-format.
authorDaniel Jasper <djasper@google.com>
Tue, 8 Jan 2013 14:56:18 +0000 (14:56 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 8 Jan 2013 14:56:18 +0000 (14:56 +0000)
commit26f7e78018ed6ce8aa11b5eef94c772ca4ee48bf
treef627e70e015c8f988ebf0258fe99caaa07f25324
parentf8a6cb1f755fe1530a0fcdf3c4cb1706d7fce822
Change the data structure used in clang-format.

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-based UnwrappedLine. Future changes will
allow multiple children for each Token turning the UnwrappedLine into a
tree.

No functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.cpp
lib/Format/UnwrappedLineParser.h
unittests/Format/FormatTest.cpp