]> granicus.if.org Git - clang/commit
Added Lexer::getBufferEnd().
authorAlexander Kornienko <alexfh@google.com>
Tue, 4 Jun 2013 16:58:03 +0000 (16:58 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 4 Jun 2013 16:58:03 +0000 (16:58 +0000)
commit49e1d9814a34e4024a347c2fce8e9567c40e6bf5
tree59b2569ab97ef19ef0ce59f7e784f87aa451f3fc
parent48eff6c3512fd6c768072b05ab4c287c7719072b
Added Lexer::getBufferEnd().

Summary:
There's Lexer::getBufferStart(), and we need getBufferEnd() to access
the whole input buffer in clang::format::reformat. We don't want to
rely on the fact that the Lexer::BufferEnd always points to '\0', as there can
be embedded '\0's as well.

Reviewers: jordan_rose

Reviewed By: jordan_rose

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D916

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183236 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Lexer.h
lib/Rewrite/Core/HTMLRewrite.cpp