]> granicus.if.org Git - clang/commit
Simplify the interface of a helper method in the TextDiagnosticPrinter
authorChandler Carruth <chandlerc@gmail.com>
Sat, 15 Oct 2011 10:48:19 +0000 (10:48 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 15 Oct 2011 10:48:19 +0000 (10:48 +0000)
commit55c611021e771a816e6e3679928439f667f12eb9
tree14dded835233c2eae6096a806fd1582b507d4a7d
parent28409289193afca1a3178a9796f8e8aebcb76896
Simplify the interface of a helper method in the TextDiagnosticPrinter
to operate directly on the source location and ranges associated with
a diagnostic rather than digging them out of the diagnostic. This had
a side benefit of cleaning up its code a tiny bit by using the ArrayRef
interface.

No functionality changed.

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