]> granicus.if.org Git - clang/commit
Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)
authorJustin Bogner <mail@justinbogner.com>
Tue, 14 Oct 2014 00:40:55 +0000 (00:40 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 14 Oct 2014 00:40:55 +0000 (00:40 +0000)
commit2835c8acb3745a6ac6cebdfe5800017b61c02486
tree6f5c8c21d7475a58991d6a478278770c45d1aa9f
parent52de81f78d920e5b65954f34119345ba485ef60c
Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)

We currently read serialized diagnostics directly in the C API, which
makes it difficult to reuse this logic elsewhere. This extracts the
core of the serialized diagnostic parsing logic into a base class that
can be subclassed using a visitor pattern.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219647 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/SerializedDiagnosticPrinter.h
include/clang/Frontend/SerializedDiagnosticReader.h [new file with mode: 0644]
include/clang/Frontend/SerializedDiagnostics.h [new file with mode: 0644]
lib/Frontend/CMakeLists.txt
lib/Frontend/SerializedDiagnosticPrinter.cpp
lib/Frontend/SerializedDiagnosticReader.cpp [new file with mode: 0644]
tools/libclang/CXLoadedDiagnostic.cpp