[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
Showing
- include/clang/Basic/Attr.td 16 additions, 5 deletionsinclude/clang/Basic/Attr.td
- include/clang/Sema/Sema.h 2 additions, 2 deletionsinclude/clang/Sema/Sema.h
- lib/Sema/SemaDeclAttr.cpp 20 additions, 18 deletionslib/Sema/SemaDeclAttr.cpp
- lib/Sema/SemaTemplateInstantiateDecl.cpp 1 addition, 3 deletionslib/Sema/SemaTemplateInstantiateDecl.cpp
- test/Sema/attr-print.c 2 additions, 5 deletionstest/Sema/attr-print.c
- test/SemaCXX/attr-print.cpp 2 additions, 4 deletionstest/SemaCXX/attr-print.cpp
- test/SemaCXX/cxx11-attr-print.cpp 6 additions, 7 deletionstest/SemaCXX/cxx11-attr-print.cpp
- utils/TableGen/ClangAttrEmitter.cpp 47 additions, 0 deletionsutils/TableGen/ClangAttrEmitter.cpp
Loading
Please register or sign in to comment