]> granicus.if.org Git - clang/commit
Allow target-specific attributes to share a spelling between different attributes...
authorAaron Ballman <aaron@aaronballman.com>
Sun, 15 Dec 2013 13:05:48 +0000 (13:05 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 15 Dec 2013 13:05:48 +0000 (13:05 +0000)
commitb9b18ea1d77d4c39acd2a17a7b65ebf84313561b
treed84928d78c11144e1ca857a30cd210c1d1e05913
parent7cec627f328707d7a9bc78b5acb56eb712ffbc12
Allow target-specific attributes to share a spelling between different attributes via the ParseKind field. Attributes will be given a common parsed attribute identifier (the AttributeList::AT_* enum), but retain distinct Attr subclasses.

This new functionality is used to implement the ARM and MSP430 interrupt attribute.

Patch reviewed by Richard Smith over IRC.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197343 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
lib/Sema/TargetAttributesSema.cpp
test/Misc/ast-dump-arm-attr.c [new file with mode: 0644]
test/Misc/ast-dump-msp430-attr.c [new file with mode: 0644]
test/Sema/attr-msp430.c [new file with mode: 0644]
utils/TableGen/ClangAttrEmitter.cpp