Move to newer clang annotations
Also enable -Wthread-safety-negative.
Changes:
Switch to capabilities and negative capabilities.
Future work:
Use capabilities to implement uninterruptible annotations to work
with AssertNoThreadSuspension.
Bug: 20072211
Change-Id: I42fcbe0300d98a831c89d1eff3ecd5a7e99ebf33
diff --git a/runtime/base/logging.h b/runtime/base/logging.h
index 93d4edc..2cd1a4d 100644
--- a/runtime/base/logging.h
+++ b/runtime/base/logging.h
@@ -237,7 +237,7 @@
public:
LogMessage(const char* file, unsigned int line, LogSeverity severity, int error);
- ~LogMessage(); // TODO: enable LOCKS_EXCLUDED(Locks::logging_lock_).
+ ~LogMessage(); // TODO: enable REQUIRES(!Locks::logging_lock_).
// Returns the stream associated with the message, the LogMessage performs output when it goes
// out of scope.