]> granicus.if.org Git - clang/commit
Replacing the exclusive_lock_function, shared_lock_function and unlock_function attri...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 20 Mar 2014 16:02:49 +0000 (16:02 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 20 Mar 2014 16:02:49 +0000 (16:02 +0000)
commit18d907edb4104d704701098633694c55cb8de20e
tree838d434dc82af9ff0979450dfc039124493ba4b4
parent46348d93a09ac80cddd7a407b98a8320cfc18abc
Replacing the exclusive_lock_function, shared_lock_function and unlock_function attributes with the acquire_capability and release_capability attributes. The old spellings will continue to work, but the underlying semantic attributes have been replaced.

Downgraded the capability diagnostics from error to warning to match the desired behavior, and updated the existing test cases.

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