clang 20.0.0git
Public Member Functions | List of all members
clang::ObjCProtocolLoc Class Reference

#include "clang/AST/TypeLoc.h"

Public Member Functions

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

Detailed Description

Definition at line 2711 of file TypeLoc.h.

Constructor & Destructor Documentation

◆ ObjCProtocolLoc()

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

Definition at line 2716 of file TypeLoc.h.

References Loc.

Member Function Documentation

◆ getLocation()

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

Definition at line 2719 of file TypeLoc.h.

References Loc.

◆ getProtocol()

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

Definition at line 2718 of file TypeLoc.h.

◆ getSourceRange()

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

The source range is just the protocol name.

Definition at line 2722 of file TypeLoc.h.

References Loc.


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