]> granicus.if.org Git - clang/commit
Add an assert to catch improperly constructed %diff sequences in
authorChandler Carruth <chandlerc@gmail.com>
Fri, 23 Dec 2016 05:19:47 +0000 (05:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 23 Dec 2016 05:19:47 +0000 (05:19 +0000)
commit49f60224fccab81034b429773e04f25031ffedcf
tree367c75c044a5a020d97c190ec04a79cc901ad3b4
parent8819f8928debb9659b358cc5ca2b44fbbd501a79
Add an assert to catch improperly constructed %diff sequences in
diagnostics and fix one such diagnostic.

Sadly, this assert doesn't catch this bug because we have no tests that
emit this diagnostic! Doh! I'm following up on the commit that
introduces it to get that fixed. Then this assert will help in a more
direct way.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290417 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Basic/Diagnostic.cpp