clang API Documentation
Represents an access specifier followed by colon ':'. More...
#include <DeclCXX.h>
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 AccessSpecDecl * | Create (ASTContext &C, AccessSpecifier AS, DeclContext *DC, SourceLocation ASLoc, SourceLocation ColonLoc) |
static AccessSpecDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
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]).
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] |
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().
AccessSpecDecl * AccessSpecDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 33 of file DeclCXX.cpp.
References AttributeLangSupport::C.
SourceLocation clang::AccessSpecDecl::getAccessSpecifierLoc | ( | ) | const [inline] |
The location of the access specifier.
Definition at line 115 of file DeclCXX.h.
References clang::Decl::getLocation().
Referenced by getSourceRange().
SourceLocation clang::AccessSpecDecl::getColonLoc | ( | ) | const [inline] |
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().
void clang::AccessSpecDecl::setAccessSpecifierLoc | ( | SourceLocation | ASLoc | ) | [inline] |
Sets the location of the access specifier.
Definition at line 117 of file DeclCXX.h.
References clang::Decl::setLocation().
void clang::AccessSpecDecl::setColonLoc | ( | SourceLocation | CLoc | ) | [inline] |
Sets the location of the colon.
Definition at line 122 of file DeclCXX.h.
Referenced by clang::ASTDeclReader::VisitAccessSpecDecl().