class AccessSpecDecl

Declaration

class AccessSpecDecl : public Decl { /* full declaration omitted */ };

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]).

Declared at: clang/include/clang/AST/DeclCXX.h:86

Inherits from: Decl

Member Variables

private clang::SourceLocation ColonLoc
The location of the ':'.

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • private AccessSpecDecl(clang::AccessSpecifier AS, clang::DeclContext * DC, clang::SourceLocation ASLoc, clang::SourceLocation ColonLoc)
  • private AccessSpecDecl(clang::Decl::EmptyShell Empty)
  • public static clang::AccessSpecDecl * Create(clang::ASTContext & C, clang::AccessSpecifier AS, clang::DeclContext * DC, clang::SourceLocation ASLoc, clang::SourceLocation ColonLoc)
  • public static clang::AccessSpecDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private virtual void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::SourceLocation getAccessSpecifierLoc() const
  • public clang::SourceLocation getColonLoc() const
  • public clang::SourceRange getSourceRange() const
  • public void setAccessSpecifierLoc(clang::SourceLocation ASLoc)
  • public void setColonLoc(clang::SourceLocation CLoc)

Inherited from Decl:

Methods

AccessSpecDecl(clang::AccessSpecifier AS,
               clang::DeclContext* DC,
               clang::SourceLocation ASLoc,
               clang::SourceLocation ColonLoc)

Declared at: clang/include/clang/AST/DeclCXX.h:90

Parameters

clang::AccessSpecifier AS
clang::DeclContext* DC
clang::SourceLocation ASLoc
clang::SourceLocation ColonLoc

AccessSpecDecl(clang::Decl::EmptyShell Empty)

Declared at: clang/include/clang/AST/DeclCXX.h:96

Parameters

clang::Decl::EmptyShell Empty

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

Declared at: clang/include/clang/AST/DeclCXX.h:117

Parameters

clang::ASTContext& C
clang::AccessSpecifier AS
clang::DeclContext* DC
clang::SourceLocation ASLoc
clang::SourceLocation ColonLoc

static clang::AccessSpecDecl* CreateDeserialized(
    clang::ASTContext& C,
    unsigned int ID)

Declared at: clang/include/clang/AST/DeclCXX.h:123

Parameters

clang::ASTContext& C
unsigned int ID

virtual void anchor()

Declared at: clang/include/clang/AST/DeclCXX.h:98

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/DeclCXX.h:126

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/DeclCXX.h:127

Parameters

clang::Decl::Kind K

clang::SourceLocation getAccessSpecifierLoc()
    const

Description

The location of the access specifier.

Declared at: clang/include/clang/AST/DeclCXX.h:102

clang::SourceLocation getColonLoc() const

Description

The location of the colon following the access specifier.

Declared at: clang/include/clang/AST/DeclCXX.h:108

clang::SourceRange getSourceRange() const

Description

Source range that this declaration covers.

Declared at: clang/include/clang/AST/DeclCXX.h:113

void setAccessSpecifierLoc(
    clang::SourceLocation ASLoc)

Description

Sets the location of the access specifier.

Declared at: clang/include/clang/AST/DeclCXX.h:105

Parameters

clang::SourceLocation ASLoc

void setColonLoc(clang::SourceLocation CLoc)

Description

Sets the location of the colon.

Declared at: clang/include/clang/AST/DeclCXX.h:111

Parameters

clang::SourceLocation CLoc