Thread safety: adding additional documentation to the main thread safety interface, and making the destructor for the thread safety handler pure virtual

llvm-svn: 139722
This commit is contained in:
Caitlin Sadowski
2011-09-14 20:05:09 +00:00
parent 0ecd395095
commit 5b34a2fd6e
2 changed files with 93 additions and 4 deletions

View File

@@ -10,7 +10,8 @@
// A intra-procedural analysis for thread safety (e.g. deadlocks and race
// conditions), based off of an annotation system.
//
// See http://gcc.gnu.org/wiki/ThreadSafetyAnnotation for the gcc version.
// See http://clang.llvm.org/docs/LanguageExtensions.html#threadsafety for more
// information.
//
//===----------------------------------------------------------------------===//
@@ -36,6 +37,9 @@
using namespace clang;
using namespace thread_safety;
// Key method definition
ThreadSafetyHandler::~ThreadSafetyHandler() {}
// Helper functions
static Expr *getParent(Expr *Exp) {
if (MemberExpr *ME = dyn_cast<MemberExpr>(Exp))