]> granicus.if.org Git - clang/commit
Allow writing calling convention attributes on function types.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 3 May 2018 15:33:50 +0000 (15:33 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 3 May 2018 15:33:50 +0000 (15:33 +0000)
commitdb7467d886696f3787d4274fbb6259681f530798
tree742bac4d0bb3a2b6da4a614b537e64b0cb16aed2
parent25c97e35c29352b5d4ae3f5ff6651404b89ef1fa
Allow writing calling convention attributes on function types.

Calling convention attributes notionally appertain to the function type -- they modify the mangling of the function, change the behavior of assignment operations, etc. This commit allows the calling convention attributes to be written in the type position as well as the declaration position.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331459 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaType.cpp
test/SemaCXX/cxx11-gnu-attrs.cpp
test/SemaCXX/type-attrs.cpp [new file with mode: 0644]
utils/TableGen/ClangAttrEmitter.cpp