]> granicus.if.org Git - clang/commit
PR17666: Instead of allowing an initial identifier argument in any attribute
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Oct 2013 01:07:54 +0000 (01:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 24 Oct 2013 01:07:54 +0000 (01:07 +0000)
commitd92aa2d2880d1c30baff996cb4c4f0836dbc355e
treed094d87b3124b802f6ef6097468fdba81d9bd605
parent605f91ffd18f35ffcb5fcdd38379bd09b67a6cb8
PR17666: Instead of allowing an initial identifier argument in any attribute
which we don't think can't have one, only allow it in the tiny number of
attributes which opts into this weird parse rule.

I've manually checked that the handlers for all these attributes can in fact
cope with an identifier as the argument. This is still somewhat terrible; we
should move more fully towards picking the parsing rules based on the
attribute, and make the Parse -> Sema interface more type-safe.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193295 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/CMakeLists.txt
include/clang/Parse/Makefile
lib/Parse/CMakeLists.txt
lib/Parse/ParseDecl.cpp
test/Parser/cxx-attributes.cpp
test/Sema/mips16_attr_allowed.c
utils/TableGen/ClangAttrEmitter.cpp
utils/TableGen/TableGen.cpp
utils/TableGen/TableGenBackends.h