clang  7.0.0svn
Public Member Functions | List of all members
clang::sema::FunctionScopeInfo::WeakUseTy Class Reference

Represents a single use of a weak object. More...

#include "clang/Sema/ScopeInfo.h"

Public Member Functions

 WeakUseTy (const Expr *Use, bool IsRead)
const ExprgetUseExpr () const
bool isUnsafe () const
void markSafe ()
bool operator== (const WeakUseTy &Other) const

Detailed 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.

Definition at line 317 of file ScopeInfo.h.

Constructor & Destructor Documentation

◆ WeakUseTy()

clang::sema::FunctionScopeInfo::WeakUseTy::WeakUseTy ( const Expr Use,
bool  IsRead 

Definition at line 321 of file ScopeInfo.h.

Member Function Documentation

◆ getUseExpr()

const Expr* clang::sema::FunctionScopeInfo::WeakUseTy::getUseExpr ( ) const

Definition at line 323 of file ScopeInfo.h.

◆ isUnsafe()

bool clang::sema::FunctionScopeInfo::WeakUseTy::isUnsafe ( ) const

Definition at line 324 of file ScopeInfo.h.

◆ markSafe()

void clang::sema::FunctionScopeInfo::WeakUseTy::markSafe ( )

Definition at line 325 of file ScopeInfo.h.

◆ operator==()

bool clang::sema::FunctionScopeInfo::WeakUseTy::operator== ( const WeakUseTy Other) const

Definition at line 327 of file ScopeInfo.h.

The documentation for this class was generated from the following file: