]> granicus.if.org Git - clang/commit
add \n characters to the scratch buffer *before* returned tokens.
authorChris Lattner <sabre@nondot.org>
Sun, 8 Mar 2009 08:16:41 +0000 (08:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Mar 2009 08:16:41 +0000 (08:16 +0000)
commit2bc69bdb29c4912e90bd213608bd98e1fc73707a
treeda1c9f12e7125304e3b412bd579da85115e72c05
parentcd1148b6145094ae3cabd02e6ef1d50dcc2d07b0
add \n characters to the scratch buffer *before* returned tokens.
This prevents caret diagnostics from the scratch buffer from
including other tokens in the scratch buffer that occurred beforei
them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66375 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/ScratchBuffer.cpp
test/Misc/caret-diags.c [new file with mode: 0644]