clang API Documentation
#include <ScopeInfo.h>
Public Member Functions | |
WeakUseTy (const Expr *Use, bool IsRead) | |
const Expr * | getUseExpr () const |
bool | isUnsafe () const |
void | markSafe () |
bool | operator== (const WeakUseTy &Other) const |
Represents a single use of a weak object.
Stores both the expression and whether the access is potentially unsafe (i.e. it could potentially be warned about).
Part of the implementation of -Wrepeated-use-of-weak.
Definition at line 252 of file ScopeInfo.h.
clang::sema::FunctionScopeInfo::WeakUseTy::WeakUseTy | ( | const Expr * | Use, |
bool | IsRead | ||
) | [inline] |
Definition at line 255 of file ScopeInfo.h.
const Expr* clang::sema::FunctionScopeInfo::WeakUseTy::getUseExpr | ( | ) | const [inline] |
Definition at line 257 of file ScopeInfo.h.
bool clang::sema::FunctionScopeInfo::WeakUseTy::isUnsafe | ( | ) | const [inline] |
Definition at line 258 of file ScopeInfo.h.
void clang::sema::FunctionScopeInfo::WeakUseTy::markSafe | ( | ) | [inline] |
Definition at line 259 of file ScopeInfo.h.
bool clang::sema::FunctionScopeInfo::WeakUseTy::operator== | ( | const WeakUseTy & | Other | ) | const [inline] |
Definition at line 261 of file ScopeInfo.h.