]> granicus.if.org Git - clang/commit
Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.
authorEric Liu <ioeric@google.com>
Tue, 19 Apr 2016 19:25:33 +0000 (19:25 +0000)
committerEric Liu <ioeric@google.com>
Tue, 19 Apr 2016 19:25:33 +0000 (19:25 +0000)
commita426f58b698e1e08ca72684a569e6718ccb8ceb7
tree40c62f218422236e0a802b68033003acf644b4b1
parent1a520f8d32bf535eb5655f4039710826d9dfd25c
Fixed a bug in AnnotatedLine::startsWith when there are comments in the line.

Summary: When there are comments in the line, one token may be checked multiple times.

Reviewers: mprobst, djasper

Subscribers: ioeric, cfe-commits, klimek

Differential Revision: http://reviews.llvm.org/D19106

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