DiagnosticStream keeps a copy of the position.
authorDavid Neto <dneto@google.com>
Wed, 28 Oct 2015 17:16:56 +0000 (13:16 -0400)
committerDavid Neto <dneto@google.com>
Tue, 10 Nov 2015 20:57:04 +0000 (15:57 -0500)
commitbae885111101d78094a99cef15d7fad006f0a956
tree497e8be201d56313a13083ed0fc7ee9809adfeba
parent758b347983564da4924d8fcd1bdf0a21523ce5b2
DiagnosticStream keeps a copy of the position.

Don't store the pointer, as the underlying storage
could disappear.  This a bit more flexible and robust.
source/diagnostic.cpp
source/diagnostic.h
source/text_handler.h
test/DiagnosticStream.cpp