]> granicus.if.org Git - clang/commit
Error if an anonymous DiagGroup is referenced multiple times.
authorJordan Rose <jordan_rose@apple.com>
Thu, 10 Jan 2013 18:50:46 +0000 (18:50 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 10 Jan 2013 18:50:46 +0000 (18:50 +0000)
commit98e7369d9ef5e53964cc8ae48ec2dfcf6c4633c0
tree63d8e50e1b9c307e7223e567470130d3e34cf8be
parent3f8c7f3a07df65580a9ca0fe3e956b8a40956a79
Error if an anonymous DiagGroup is referenced multiple times.

Not only is this inefficient for TableGen, it's annoying for maintenance
when renaming warning flags (unusual) or adding those flags to a group
(more likely).

This uses the new fix-it infrastructure for LLVM's SourceMgr/SMDiagnostic,
as well as a few changes to TableGen to track more source information.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172087 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/DiagnosticBase.inc [new file with mode: 0644]
test/TableGen/anonymous-groups.td [new file with mode: 0644]
test/TableGen/lit.local.cfg [new file with mode: 0644]
test/TableGen/tg-fixits.td [new file with mode: 0644]
utils/TableGen/ClangDiagnosticsEmitter.cpp