]> granicus.if.org Git - clang/commit
Store first and last newline position in the token text for string literals and comments.
authorAlexander Kornienko <alexfh@google.com>
Mon, 2 Sep 2013 13:58:14 +0000 (13:58 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 2 Sep 2013 13:58:14 +0000 (13:58 +0000)
commit4b762a91faac0473fa380ea9731992b24867e2e6
tree6d344280ae5eb09743ba4d35ef844af730217776
parent3361f10d6b21327b082c53facef0741c13b2ffa7
Store first and last newline position in the token text for string literals and comments.

Summary:
Store first and last newline position in the token text for string literals and
comments to avoid doing .find('\n') for each possible solution.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D1556

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