]> granicus.if.org Git - clang/commit
generalize the "end of line" checking logic to stop at any \0 at the
authorChris Lattner <sabre@nondot.org>
Sun, 8 Mar 2009 08:11:22 +0000 (08:11 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 8 Mar 2009 08:11:22 +0000 (08:11 +0000)
commitcd1148b6145094ae3cabd02e6ef1d50dcc2d07b0
tree740b7a4e9d1d98fb45e45a4bc31ac8e37b629b3e
parent1fa495304c81e03f07f278a47b5efe9317104aab
generalize the "end of line" checking logic to stop at any \0 at the
end of line instead of just the end of buffer.  Scratch buffers contain
embedded \0's between tokens which are logic line separators.  If a
normal text buffer contains \0's, it doesn't make a lot of sense to include
them in the caret diag output anyway.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66374 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnosticPrinter.cpp