]> granicus.if.org Git - clang/commit
[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)
commita31f65b10e61ca8f2f427b1df176c10ea8a0efa2
treec3416c426c2000ccab355404bd726220c68d7381
parenta55e3ff9cbb5ccf338abd15d60970d9655e46d55
[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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174133 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Sema/Sema.h
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/Sema/attr-print.c
test/SemaCXX/attr-print.cpp
test/SemaCXX/cxx11-attr-print.cpp
utils/TableGen/ClangAttrEmitter.cpp