]> granicus.if.org Git - clang/commit
Thread Safety: Added basic argument parsing for all new attributes.
authorCaitlin Sadowski <supertri@google.com>
Tue, 9 Aug 2011 17:59:31 +0000 (17:59 +0000)
committerCaitlin Sadowski <supertri@google.com>
Tue, 9 Aug 2011 17:59:31 +0000 (17:59 +0000)
commitb51e0315d4ffd12670441ea2284ae1188485df14
tree60178d155136878cf56ff96f28bd42e6ca1a2644
parentc55db3b76df62f2c89e9bcc7437d1065512fb139
Thread Safety: Added basic argument parsing for all new attributes.

This patch special cases the parser for thread safety attributes so that all
attribute arguments are put in the argument list (instead of a special
parameter) since arguments may not otherwise resolve correctly without two-token
lookahead.

This patch also adds checks to make sure that attribute arguments are
lockable objects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137130 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LanguageExtensions.html
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
lib/Sema/SemaDeclAttr.cpp
test/SemaCXX/warn-thread-safety.cpp