]> granicus.if.org Git - clang/commit
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)
commitc96cf442c306153b49747964817fa9ac8ec8e95b
tree15c7a7ba0d25b88c14545981c22f64b5de8ad137
parent78edcbb6a4e14190852e0a3d52884eb24fffef26
When the diagnostic text is simply "%0", sanitize the string for any
unprintable characters.  Fixes PR22048.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Diagnostic.cpp
test/Misc/diag-special-chars.c [new file with mode: 0644]