[Sema][Attr]Fix alignment attribute printing.
authorMichael Han <fragmentshaders@gmail.com>
Fri, 1 Feb 2013 01:19:17 +0000 (01:19 +0000)
committerMichael Han <fragmentshaders@gmail.com>
Fri, 1 Feb 2013 01:19:17 +0000 (01:19 +0000)
commitaf02bbe84f653125d50bfded5f854baf48c307f9
treeb39061a7071ee992e3ce68b7f0ce9945833d2519
parentc79cdff1959fb3e54ad3d24c18ecfb9f5b4b1c76
[Sema][Attr]Fix alignment attribute printing.

Remove "IsMSDeclspec" argument from Align attribute since the arguments in Attr.td should
only model those appear in source code. Introduce attribute Accessor, and teach TableGen
to generate syntax kind accessors for Align attribute, and use those accessors to decide
if an alignment attribute is a declspec attribute.

llvm-svn: 174133
clang/include/clang/Basic/Attr.td
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/test/Sema/attr-print.c
clang/test/SemaCXX/attr-print.cpp
clang/test/SemaCXX/cxx11-attr-print.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp