clang  3.9.0
Public Member Functions | Static Public Member Functions | List of all members
clang::AccessSpecDecl Class Reference

Represents an access specifier followed by colon ':'. More...

#include <DeclCXX.h>

Inheritance diagram for clang::AccessSpecDecl:
[legend]
Collaboration diagram for clang::AccessSpecDecl:
[legend]

Public Member Functions

SourceLocation getAccessSpecifierLoc () const
 The location of the access specifier. More...
 
void setAccessSpecifierLoc (SourceLocation ASLoc)
 Sets the location of the access specifier. More...
 
SourceLocation getColonLoc () const
 The location of the colon following the access specifier. More...
 
void setColonLoc (SourceLocation CLoc)
 Sets the location of the colon. More...
 
SourceRange getSourceRange () const override LLVM_READONLY
 

Static Public Member Functions

static AccessSpecDeclCreate (ASTContext &C, AccessSpecifier AS, DeclContext *DC, SourceLocation ASLoc, SourceLocation ColonLoc)
 
static AccessSpecDeclCreateDeserialized (ASTContext &C, unsigned ID)
 
static bool classof (const Decl *D)
 
static bool classofKind (Kind K)
 

Detailed Description

Represents an access specifier followed by colon ':'.

An objects of this class represents sugar for the syntactic occurrence of an access specifier followed by a colon in the list of member specifiers of a C++ class definition.

Note that they do not represent other uses of access specifiers, such as those occurring in a list of base specifiers. Also note that this class has nothing to do with so-called "access declarations" (C++98 11.3 [class.access.dcl]).

Definition at line 103 of file DeclCXX.h.

Member Function Documentation

static bool clang::AccessSpecDecl::classof ( const Decl D)
inlinestatic

Definition at line 138 of file DeclCXX.h.

References classofKind().

static bool clang::AccessSpecDecl::classofKind ( Kind  K)
inlinestatic

Definition at line 139 of file DeclCXX.h.

Referenced by classof().

static AccessSpecDecl* clang::AccessSpecDecl::Create ( ASTContext C,
AccessSpecifier  AS,
DeclContext DC,
SourceLocation  ASLoc,
SourceLocation  ColonLoc 
)
inlinestatic
AccessSpecDecl * AccessSpecDecl::CreateDeserialized ( ASTContext C,
unsigned  ID 
)
static

Definition at line 33 of file DeclCXX.cpp.

References AttributeLangSupport::C, and ID.

SourceLocation clang::AccessSpecDecl::getAccessSpecifierLoc ( ) const
inline

The location of the access specifier.

Definition at line 117 of file DeclCXX.h.

Referenced by getSourceRange().

SourceLocation clang::AccessSpecDecl::getColonLoc ( ) const
inline

The location of the colon following the access specifier.

Definition at line 122 of file DeclCXX.h.

Referenced by getSourceRange(), clang::ASTDeclWriter::VisitAccessSpecDecl(), and clang::ASTNodeImporter::VisitAccessSpecDecl().

SourceRange clang::AccessSpecDecl::getSourceRange ( ) const
inlineoverride

Definition at line 126 of file DeclCXX.h.

References getAccessSpecifierLoc(), and getColonLoc().

void clang::AccessSpecDecl::setAccessSpecifierLoc ( SourceLocation  ASLoc)
inline

Sets the location of the access specifier.

Definition at line 119 of file DeclCXX.h.

void clang::AccessSpecDecl::setColonLoc ( SourceLocation  CLoc)
inline

Sets the location of the colon.

Definition at line 124 of file DeclCXX.h.

Referenced by clang::ASTDeclReader::VisitAccessSpecDecl().


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