Step #2/N of __label__ support: keep pushing LabelDecl forward,
commit57ad37823e198f977cac605dbfbaefb4daf325e9
authorChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 20:34:02 +0000 (17 20:34 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Feb 2011 20:34:02 +0000 (17 20:34 +0000)
tree6a224b2610fe145e615126e76e465f9cbdf77401
parentd8e54990ade0dd5566f8e3aa2e62def08753d1e9
Step #2/N of __label__ support: keep pushing LabelDecl forward,
making them be template instantiated in a more normal way and
make them handle attributes like other decls.

This fixes the used/unused label handling stuff, making it use
the same infrastructure as other decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125771 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
include/clang/AST/Decl.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
include/clang/Sema/Template.h
lib/AST/DeclPrinter.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Sema/warn-unused-label.c