clang API Documentation

Public Member Functions | Static Public Member Functions
clang::AccessSpecDecl Class Reference

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

#include <DeclCXX.h>

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

List of all members.

Public Member Functions

SourceLocation getAccessSpecifierLoc () const
 The location of the access specifier.
void setAccessSpecifierLoc (SourceLocation ASLoc)
 Sets the location of the access specifier.
SourceLocation getColonLoc () const
 The location of the colon following the access specifier.
void setColonLoc (SourceLocation CLoc)
 Sets the location of the colon.
SourceRange getSourceRange () const override LLVM_READONLY
 Source range that this declaration covers.

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 101 of file DeclCXX.h.


Member Function Documentation

static bool clang::AccessSpecDecl::classof ( const Decl D) [inline, static]

Definition at line 136 of file DeclCXX.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::AccessSpecDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::Decl.

Definition at line 137 of file DeclCXX.h.

Referenced by classof().

static AccessSpecDecl* clang::AccessSpecDecl::Create ( ASTContext C,
AccessSpecifier  AS,
DeclContext DC,
SourceLocation  ASLoc,
SourceLocation  ColonLoc 
) [inline, static]

Definition at line 128 of file DeclCXX.h.

References AttributeLangSupport::C.

Referenced by clang::Sema::ActOnAccessSpecifier().

Definition at line 33 of file DeclCXX.cpp.

References AttributeLangSupport::C.

The location of the access specifier.

Definition at line 115 of file DeclCXX.h.

References clang::Decl::getLocation().

Referenced by getSourceRange().

The location of the colon following the access specifier.

Definition at line 120 of file DeclCXX.h.

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

SourceRange clang::AccessSpecDecl::getSourceRange ( ) const [inline, override, virtual]

Source range that this declaration covers.

Reimplemented from clang::Decl.

Definition at line 124 of file DeclCXX.h.

References getAccessSpecifierLoc(), and getColonLoc().

Sets the location of the access specifier.

Definition at line 117 of file DeclCXX.h.

References clang::Decl::setLocation().

Sets the location of the colon.

Definition at line 122 of file DeclCXX.h.

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


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