]> granicus.if.org Git - clang/commit
A first step towards giving format tokens pointer identity.
authorManuel Klimek <klimek@google.com>
Tue, 28 May 2013 11:55:06 +0000 (11:55 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 28 May 2013 11:55:06 +0000 (11:55 +0000)
commit96e888b0dd3f114eee7e4455a74b8cb5f52e071d
tree2fd95f53dd8656b3e58003fddbbb8f3c1170cb84
parent5ad390d27f8f7cb6628bc2c32beba4d25bc2718b
A first step towards giving format tokens pointer identity.

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.

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