diff options
author | Michael Han <Michael.Han@autodesk.com> | 2012-03-07 00:12:16 +0000 |
---|---|---|
committer | Michael Han <Michael.Han@autodesk.com> | 2012-03-07 00:12:16 +0000 |
commit | e53ac8aea2d9e8bbb11191398ea3cc2edb2d171a (patch) | |
tree | b89f8e7a367e6dceab83f73c21e1c00d69379ee5 /lib/Frontend/LangStandards.cpp | |
parent | 29293cddc682091a16a71f513e605995473f7f45 (diff) |
Refactor Clang sema attribute handling.
This submission improves Clang sema handling by using Clang tablegen
to generate common boilerplate code. As a start, it implements AttributeList
enumerator generation and case statements for AttributeList::getKind.
A new field "SemaHandler" is introduced in Attr.td and by default set to 1
as most of attributes in Attr.td have semantic checking in Sema. For a small
number of attributes that don't appear in Sema, the value is set to 0.
Also there are a small number of attributes that only appear in Sema but not
in Attr.td. Currently these attributes are still hardcoded in Sema AttributeList.
Reviewed by Delesley Hutchins.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/LangStandards.cpp')
0 files changed, 0 insertions, 0 deletions