]> granicus.if.org Git - clang/commit
Automate attribute argument count semantic checking when there are variadic or option...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 31 Jul 2014 16:37:04 +0000 (16:37 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 31 Jul 2014 16:37:04 +0000 (16:37 +0000)
commit60ec5f80d2f681874cf2199dbd38b77346f30bb4
treef6ad0ae718221cb97fb1dfe285ead71c6e1e7132
parent79cefc56a549435fae4cafd9a5cba8e7e6ae2312
Automate attribute argument count semantic checking when there are variadic or optional arguments present. With this, the only time you should have to manually check attribute argument counts is when HasCustomParsing is set to true, or when you have variadic arguments that aren't really variadic (like ownership_holds and friends).

Updating the diagnostics in the launch_bounds test since they have been improved in that case. Adding a test for nonnull since it has little test coverage, but has truly variadic arguments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@214407 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/AttributeList.h
lib/Sema/AttributeList.cpp
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-nonnull.c [new file with mode: 0644]
test/SemaCUDA/launch_bounds.cu
utils/TableGen/ClangAttrEmitter.cpp