]> granicus.if.org Git - clang/commit
Factor out custom parsing for iboutletcollection and vec_type_hint attributes
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 31 Oct 2013 01:56:18 +0000 (01:56 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 31 Oct 2013 01:56:18 +0000 (01:56 +0000)
commitd386fef64f1fd00fc9a97efb963d8ec393fd1ace
tree3567690a358532ec28b5f4fb3e04383c4fc449a3
parent6d754e9a9d6591e8fc5eedc144cc70a7e539ba6f
Factor out custom parsing for iboutletcollection and vec_type_hint attributes
into a separate "parse an attribute that takes a type argument" codepath. This
results in both codepaths being a lot cleaner and simpler, and fixes some bugs
where the type argument handling bled into the expression argument handling and
caused us to both accept invalid and reject valid attribute arguments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193731 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Parser.h
include/clang/Sema/AttributeList.h
lib/Parse/ParseDecl.cpp
lib/Sema/SemaDeclAttr.cpp
test/Parser/attributes.c
test/Parser/cxx-attributes.cpp
test/SemaObjC/iboutletcollection-attr.m
tools/libclang/CIndex.cpp
tools/libclang/IndexingContext.cpp