clang  7.0.0svn
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
clang::InheritableAttr Class Reference

#include "clang/AST/Attr.h"

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

Public Member Functions

void setInherited (bool I)
 
bool shouldInheritEvenIfAlreadyPresent () const
 Should this attribute be inherited from a prior declaration even if it's explicitly provided in the current declaration? More...
 
- Public Member Functions inherited from clang::Attr
void * operator new (size_t Bytes, ASTContext &C, size_t Alignment=8) noexcept
 
void operator delete (void *Ptr, ASTContext &C, size_t Alignment) noexcept
 
attr::Kind getKind () const
 
unsigned getSpellingListIndex () const
 
const char * getSpelling () const
 
SourceLocation getLocation () const
 
SourceRange getRange () const
 
void setRange (SourceRange R)
 
bool isInherited () const
 
bool isImplicit () const
 Returns true if the attribute has been implicitly created instead of explicitly written by the user. More...
 
void setImplicit (bool I)
 
void setPackExpansion (bool PE)
 
bool isPackExpansion () const
 
Attrclone (ASTContext &C) const
 
bool isLateParsed () const
 
void printPretty (raw_ostream &OS, const PrintingPolicy &Policy) const
 

Static Public Member Functions

static bool classof (const Attr *A)
 

Protected Member Functions

 InheritableAttr (attr::Kind AK, SourceRange R, unsigned SpellingListIndex, bool IsLateParsed, bool InheritEvenIfAlreadyPresent)
 
- Protected Member Functions inherited from clang::Attr
void * operator new (size_t bytes) noexcept
 
void operator delete (void *data) noexcept
 
 Attr (attr::Kind AK, SourceRange R, unsigned SpellingListIndex, bool IsLateParsed)
 

Additional Inherited Members

- Protected Attributes inherited from clang::Attr
unsigned SpellingListIndex: 4
 An index into the spelling list of an attribute defined in Attr.td file. More...
 
unsigned Inherited: 1
 
unsigned IsPackExpansion: 1
 
unsigned Implicit: 1
 
unsigned IsLateParsed: 1
 
unsigned InheritEvenIfAlreadyPresent: 1
 

Detailed Description

Definition at line 129 of file Attr.h.

Constructor & Destructor Documentation

◆ InheritableAttr()

clang::InheritableAttr::InheritableAttr ( attr::Kind  AK,
SourceRange  R,
unsigned  SpellingListIndex,
bool  IsLateParsed,
bool  InheritEvenIfAlreadyPresent 
)
inlineprotected

Definition at line 131 of file Attr.h.

References clang::Attr::InheritEvenIfAlreadyPresent.

Member Function Documentation

◆ classof()

static bool clang::InheritableAttr::classof ( const Attr A)
inlinestatic

Definition at line 147 of file Attr.h.

References clang::Attr::getKind().

◆ setInherited()

void clang::InheritableAttr::setInherited ( bool  I)
inline

Definition at line 138 of file Attr.h.

◆ shouldInheritEvenIfAlreadyPresent()

bool clang::InheritableAttr::shouldInheritEvenIfAlreadyPresent ( ) const
inline

Should this attribute be inherited from a prior declaration even if it's explicitly provided in the current declaration?

Definition at line 142 of file Attr.h.

References clang::Attr::InheritEvenIfAlreadyPresent.


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