When the diagnostic text is simply "%0", sanitize the string for any
authorRichard Trieu <rtrieu@google.com>
Thu, 8 Jan 2015 01:27:03 +0000 (01:27 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 8 Jan 2015 01:27:03 +0000 (01:27 +0000)
commitb3b8bb002918d786408f4a1368725bbc14802876
treed35ab6e97682dbc4c2c64c8d40c99e8752d58c70
parenta799e2e0146e95ced5f7a4520e84a97311e69d47
When the diagnostic text is simply "%0", sanitize the string for any
unprintable characters.  Fixes PR22048.

llvm-svn: 225423
clang/lib/Basic/Diagnostic.cpp
clang/test/Misc/diag-special-chars.c [new file with mode: 0644]