]> granicus.if.org Git - clang/commit
Wrap the new ext-warn on extraneous comma on the last entry of an enumerator
authorChandler Carruth <chandlerc@gmail.com>
Thu, 8 Jul 2010 10:52:01 +0000 (10:52 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 8 Jul 2010 10:52:01 +0000 (10:52 +0000)
commitfbc94213f38c48154ddc448b527f667182abe954
treee354f8b802544fa55110df46a4be8c8850e4df82
parent7d5c45ed9dc2842ce8e65ea26ced0957be36a569
Wrap the new ext-warn on extraneous comma on the last entry of an enumerator
list in a diagnostic group so it can be turned on and off. A terrifying amount
of code, including large chunks of open source code, still do this so it's
important to be able to suppress it when necessary.

Doug, is this a reasonable compromise? I'd lean toward making it a normal
extension, but I don't feel strongly as long as we can turn the warnings off.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107865 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticParseKinds.td