class AttributedTypeLoc
Declaration
class AttributedTypeLoc : public ConcreteTypeLoc { /* full declaration omitted */ };
Description
Type source information for an attributed type.
Declared at: clang/include/clang/AST/TypeLoc.h:860
Inherits from: ConcreteTypeLoc
Method Overview
- public const clang::Attr * getAttr() const
- public template <typename T>const T * getAttrAs()
- public attr::Kind getAttrKind() const
- public clang::QualType getInnerType() const
- public clang::SourceRange getLocalSourceRange() const
- public clang::TypeLoc getModifiedLoc() const
- public void initializeLocal(clang::ASTContext & Context, clang::SourceLocation loc)
- public bool isQualifier() const
- public void setAttr(const clang::Attr * A)
Methods
¶const clang::Attr* getAttr() const
const clang::Attr* getAttr() const
Description
The type attribute.
Declared at: clang/include/clang/AST/TypeLoc.h:882
¶template <typename T>
const T* getAttrAs()
template <typename T>
const T* getAttrAs()
Declared at: clang/include/clang/AST/TypeLoc.h:889
Templates
- T
¶attr::Kind getAttrKind() const
attr::Kind getAttrKind() const
Declared at: clang/include/clang/AST/TypeLoc.h:865
¶clang::QualType getInnerType() const
clang::QualType getInnerType() const
Declared at: clang/include/clang/AST/TypeLoc.h:899
¶clang::SourceRange getLocalSourceRange() const
clang::SourceRange getLocalSourceRange() const
Declared at: clang/include/clang/AST/TypeLoc.h:893
¶clang::TypeLoc getModifiedLoc() const
clang::TypeLoc getModifiedLoc() const
Description
The modified type, which is generally canonically different from the attribute type. int main(int, char**) __attribute__((noreturn)) ~~~ ~~~~~~~~~~~~~
Declared at: clang/include/clang/AST/TypeLoc.h:877
¶void initializeLocal(clang::ASTContext& Context,
clang::SourceLocation loc)
void initializeLocal(clang::ASTContext& Context,
clang::SourceLocation loc)
Declared at: clang/include/clang/AST/TypeLoc.h:895
Parameters
- clang::ASTContext& Context
- clang::SourceLocation loc
¶bool isQualifier() const
bool isQualifier() const
Declared at: clang/include/clang/AST/TypeLoc.h:869
¶void setAttr(const clang::Attr* A)
void setAttr(const clang::Attr* A)
Declared at: clang/include/clang/AST/TypeLoc.h:885
Parameters
- const clang::Attr* A