]> granicus.if.org Git - clang/commit
Capability attributes can now be declared on a typedef declaration as well as a struc...
authorAaron Ballman <aaron@aaronballman.com>
Mon, 24 Mar 2014 19:29:19 +0000 (19:29 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 24 Mar 2014 19:29:19 +0000 (19:29 +0000)
commit3fd557c273e9c2256f0ca2c672e972da3c3d1f30
treed893ea31c927cd7204154a5e2df8dbabe1507bbc
parent277ebecdb7d2194d7c12f4770ccb5104847756bc
Capability attributes can now be declared on a typedef declaration as well as a structure declaration. This allows for C code to use Boolean expressions on a capability as part of another attribute. Eg) __attribute__((requires_capability(!SomeCapability)))

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204657 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/AttributeList.h
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-capabilities.c
test/SemaCXX/warn-thread-safety-parsing.cpp