]> granicus.if.org Git - clang/commit
Tweak the extraction of the "interesting" part of a source range in two ways:
authorDouglas Gregor <dgregor@apple.com>
Mon, 4 May 2009 06:27:32 +0000 (06:27 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 4 May 2009 06:27:32 +0000 (06:27 +0000)
commitcfe1f9d86d4d3b2538ed41a9f5ff313dcd20c6a9
treed7ac25c046ed7780ed018b3389923d5549cbbbb8
parentf936f4568700d799e7d92eecef67b0e2b822ae7e
Tweak the extraction of the "interesting" part of a source range in two ways:

  1) First of all, we treat _ as part of an identifier and not as
  punctuation (oops).
  2) Second of all, always make sure that the token that the ^ is
  pointing at is fully within the "interesting" part of the range.

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