From: Aaron Ballman Date: Fri, 22 May 2015 13:36:48 +0000 (+0000) Subject: Updating the documentation to include an operator! for negative capability support. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd32b56304e81d29654ffa27140edad7d0e5cd2f;p=clang Updating the documentation to include an operator! for negative capability support. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ThreadSafetyAnalysis.rst b/docs/ThreadSafetyAnalysis.rst index 0a1b8049e4..19ec2352ff 100644 --- a/docs/ThreadSafetyAnalysis.rst +++ b/docs/ThreadSafetyAnalysis.rst @@ -857,6 +857,9 @@ implementation. // Assert that is mutex is currently held for read operations. void AssertReaderHeld() ASSERT_SHARED_CAPABILITY(this); + + // For negative capabilities. + const Mutex& operator!() const { return *this; } };