]> granicus.if.org Git - clang/commit
Serialized diagnostic severity levels should be stable.
authorJordan Rose <jordan_rose@apple.com>
Mon, 3 Mar 2014 18:29:52 +0000 (18:29 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 3 Mar 2014 18:29:52 +0000 (18:29 +0000)
commit4c271d41690f16f970d4c88abd70729c3c1d6fb6
treeffd361f230f3366ab13698e7eabb7d1fdf1c47aa
parent7a9b46c6c7524cc381adbdeaac7f33c928239043
Serialized diagnostic severity levels should be stable.

Serialized diagnostics were accidentally using the AST diagnostic level values
rather than a dedicated stable enum, so the addition of "remark" broke the
reading of existing serialized diagnostics files. I've added a .dia file
generated from Xcode 5's Clang to make sure we don't break this in the future.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202733 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/SerializedDiagnosticPrinter.h
lib/Frontend/SerializedDiagnosticPrinter.cpp
test/Misc/Inputs/serialized-diags-stable.dia [new file with mode: 0644]
test/Misc/serialized-diags-stable.c [new file with mode: 0644]
tools/libclang/CXLoadedDiagnostic.cpp