]> granicus.if.org Git - clang/commit
DeLesley Hutchins (who wrote the original thread-safety attribute functionality)...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 18 Feb 2014 17:36:50 +0000 (17:36 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 18 Feb 2014 17:36:50 +0000 (17:36 +0000)
commit0894e597485f694a19b21db3e36ac1cd1b3f3723
treeebc934f46239a4fd550daa41b0180b388a0eb1ee
parentd70502c3b96082c117444ab23ee82b5ffb80049c
DeLesley Hutchins (who wrote the original thread-safety attribute functionality) and I have agreed to start migrating from lock-specific terminology to "capability"-specific terminology. This opens the door for future threading-related analysis passes so that a common nomenclature can be used.

The following attributes have been (silently) deprecated, with their replacements listed:

lockable => capability
exclusive_locks_required => requires_capability
shared_locks_required => requires_shared_capability
locks_excluded => requires_capability

There are no functional changes intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201585 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Analysis/ThreadSafety.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
test/Sema/attr-capabilities.c [new file with mode: 0644]
test/SemaCXX/warn-thread-safety-parsing.cpp