class ObjCProtocolLoc

Declaration

class ObjCProtocolLoc { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/TypeLoc.h:2635

Member Variables

private clang::ObjCProtocolDecl* Protocol = nullptr
private clang::SourceLocation Loc = clang::SourceLocation()

Method Overview

Methods

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

Declared at: clang/include/clang/AST/TypeLoc.h:2640

Parameters

clang::ObjCProtocolDecl* protocol
clang::SourceLocation loc

clang::SourceLocation getLocation() const

Declared at: clang/include/clang/AST/TypeLoc.h:2643

clang::ObjCProtocolDecl* getProtocol() const

Declared at: clang/include/clang/AST/TypeLoc.h:2642

clang::SourceRange getSourceRange() const

Description

The source range is just the protocol name.

Declared at: clang/include/clang/AST/TypeLoc.h:2646