clang 24.0.0git
clang::VirtSpecifiers Class Reference

Represents a C++11 virt-specifier-seq. More...

#include "clang/Sema/DeclSpec.h"

Public Types

enum  Specifier {
  VS_None = 0 , VS_Override = 1 , VS_Final = 2 , VS_Sealed = 4 ,
  VS_GNU_Final = 8 , VS_Abstract = 16
}

Public Member Functions

 VirtSpecifiers ()=default
bool SetSpecifier (Specifier VS, SourceLocation Loc, const char *&PrevSpec)
bool isUnset () const
bool isOverrideSpecified () const
SourceLocation getOverrideLoc () const
bool isFinalSpecified () const
bool isFinalSpelledSealed () const
SourceLocation getFinalLoc () const
SourceLocation getAbstractLoc () const
void clear ()
SourceLocation getFirstLocation () const
SourceLocation getLastLocation () const
Specifier getLastSpecifier () const

Static Public Member Functions

static const char * getSpecifierName (Specifier VS)

Detailed Description

Represents a C++11 virt-specifier-seq.

Definition at line 2881 of file DeclSpec.h.

Member Enumeration Documentation

◆ Specifier

Enumerator
VS_None 
VS_Override 
VS_Final 
VS_Sealed 
VS_GNU_Final 
VS_Abstract 

Definition at line 2883 of file DeclSpec.h.

Constructor & Destructor Documentation

◆ VirtSpecifiers()

clang::VirtSpecifiers::VirtSpecifiers ( )
default

Member Function Documentation

◆ clear()

void clang::VirtSpecifiers::clear ( )
inline

Definition at line 2908 of file DeclSpec.h.

◆ getAbstractLoc()

SourceLocation clang::VirtSpecifiers::getAbstractLoc ( ) const
inline

Definition at line 2906 of file DeclSpec.h.

◆ getFinalLoc()

SourceLocation clang::VirtSpecifiers::getFinalLoc ( ) const
inline

Definition at line 2905 of file DeclSpec.h.

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

◆ getFirstLocation()

SourceLocation clang::VirtSpecifiers::getFirstLocation ( ) const
inline

Definition at line 2912 of file DeclSpec.h.

◆ getLastLocation()

SourceLocation clang::VirtSpecifiers::getLastLocation ( ) const
inline

Definition at line 2913 of file DeclSpec.h.

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

◆ getLastSpecifier()

Specifier clang::VirtSpecifiers::getLastSpecifier ( ) const
inline

Definition at line 2914 of file DeclSpec.h.

◆ getOverrideLoc()

SourceLocation clang::VirtSpecifiers::getOverrideLoc ( ) const
inline

Definition at line 2901 of file DeclSpec.h.

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

◆ getSpecifierName()

const char * VirtSpecifiers::getSpecifierName ( Specifier VS)
static

Definition at line 1748 of file DeclSpec.cpp.

References VS_Abstract, VS_Final, VS_GNU_Final, VS_Override, and VS_Sealed.

Referenced by SetSpecifier().

◆ isFinalSpecified()

bool clang::VirtSpecifiers::isFinalSpecified ( ) const
inline

◆ isFinalSpelledSealed()

bool clang::VirtSpecifiers::isFinalSpelledSealed ( ) const
inline

Definition at line 2904 of file DeclSpec.h.

References VS_Sealed.

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

◆ isOverrideSpecified()

bool clang::VirtSpecifiers::isOverrideSpecified ( ) const
inline

◆ isUnset()

bool clang::VirtSpecifiers::isUnset ( ) const
inline

Definition at line 2898 of file DeclSpec.h.

◆ SetSpecifier()

bool VirtSpecifiers::SetSpecifier ( Specifier VS,
SourceLocation Loc,
const char *& PrevSpec )

Definition at line 1722 of file DeclSpec.cpp.

References getSpecifierName(), VS_Abstract, VS_Final, VS_GNU_Final, VS_Override, and VS_Sealed.


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