clang
3.9.0
|
Represents an access specifier followed by colon ':'. More...
#include <DeclCXX.h>
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 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]).
Definition at line 138 of file DeclCXX.h.
References classofKind().
|
inlinestatic |
Definition at line 130 of file DeclCXX.h.
Referenced by clang::Sema::ActOnAccessSpecifier(), and clang::ASTNodeImporter::VisitAccessSpecDecl().
|
static |
Definition at line 33 of file DeclCXX.cpp.
References AttributeLangSupport::C, and ID.
|
inline |
The location of the access specifier.
Definition at line 117 of file DeclCXX.h.
Referenced by getSourceRange().
|
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().
|
inlineoverride |
Definition at line 126 of file DeclCXX.h.
References getAccessSpecifierLoc(), and getColonLoc().
|
inline |
|
inline |
Sets the location of the colon.
Definition at line 124 of file DeclCXX.h.
Referenced by clang::ASTDeclReader::VisitAccessSpecDecl().