class FunctionScopeInfo::WeakUseTy
Declaration
class FunctionScopeInfo::WeakUseTy { /* full declaration omitted */ };
Description
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.
Declared at: clang/include/clang/Sema/ScopeInfo.h:343
Member Variables
- private llvm::PointerIntPair<const Expr*, 1, bool> Rep
Method Overview
- public WeakUseTy(const clang::Expr * Use, bool IsRead)
- public const clang::Expr * getUseExpr() const
- public bool isUnsafe() const
- public void markSafe()
Methods
¶WeakUseTy(const clang::Expr* Use, bool IsRead)
WeakUseTy(const clang::Expr* Use, bool IsRead)
Declared at: clang/include/clang/Sema/ScopeInfo.h:347
Parameters
- const clang::Expr* Use
- bool IsRead
¶const clang::Expr* getUseExpr() const
const clang::Expr* getUseExpr() const
Declared at: clang/include/clang/Sema/ScopeInfo.h:349
¶bool isUnsafe() const
bool isUnsafe() const
Declared at: clang/include/clang/Sema/ScopeInfo.h:350
¶void markSafe()
void markSafe()
Declared at: clang/include/clang/Sema/ScopeInfo.h:351