clang 24.0.0git
clang::ObjCProtocolLoc Class Reference

#include "clang/AST/TypeLoc.h"

Public Member Functions

 ObjCProtocolLoc (ObjCProtocolDecl *protocol, SourceLocation loc)
ObjCProtocolDecl * getProtocol () const
SourceLocation getLocation () const
SourceRange getSourceRange () const LLVM_READONLY
 The source range is just the protocol name.

Detailed Description

Definition at line 2814 of file TypeLoc.h.

Constructor & Destructor Documentation

◆ ObjCProtocolLoc()

clang::ObjCProtocolLoc::ObjCProtocolLoc ( ObjCProtocolDecl * protocol,
SourceLocation loc )
inline

Definition at line 2819 of file TypeLoc.h.

Member Function Documentation

◆ getLocation()

SourceLocation clang::ObjCProtocolLoc::getLocation ( ) const
inline

Definition at line 2822 of file TypeLoc.h.

◆ getProtocol()

ObjCProtocolDecl * clang::ObjCProtocolLoc::getProtocol ( ) const
inline

Definition at line 2821 of file TypeLoc.h.

Referenced by clang::DynTypedNode::operator==().

◆ getSourceRange()

SourceRange clang::ObjCProtocolLoc::getSourceRange ( ) const
inline

The source range is just the protocol name.

Definition at line 2825 of file TypeLoc.h.


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