]> granicus.if.org Git - clang/commit
Capabilities are required to pass a name specifying what type of capability is being...
authorAaron Ballman <aaron@aaronballman.com>
Wed, 5 Mar 2014 21:47:13 +0000 (21:47 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 5 Mar 2014 21:47:13 +0000 (21:47 +0000)
commit25a7fe7d87a315232a75687f3588188349d42166
tree88c2761886da4f2d72a045ac1f958e47c60716a1
parent75f094ca568d0efe44961613d8a748acbc8eb7c0
Capabilities are required to pass a name specifying what type of capability is being annotated. There are currently only two supported names: mutex and role. Adding functionality to check for the capability name and diagnose when it's unexpected.

Note that for backwards compatibility, an unnamed capability will default to being a "mutex." This allows the deprecated lockable attribute to continue to function.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203012 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-capabilities.c