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

Methods

const clang::Attr* getAttr() const

Description

The type attribute.

Declared at: clang/include/clang/AST/TypeLoc.h:882

template <typename T>
const T* getAttrAs()

Declared at: clang/include/clang/AST/TypeLoc.h:889

Templates

T

attr::Kind getAttrKind() const

Declared at: clang/include/clang/AST/TypeLoc.h:865

clang::QualType getInnerType() const

Declared at: clang/include/clang/AST/TypeLoc.h:899

clang::SourceRange getLocalSourceRange() const

Declared at: clang/include/clang/AST/TypeLoc.h:893

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)

Declared at: clang/include/clang/AST/TypeLoc.h:895

Parameters

clang::ASTContext& Context
clang::SourceLocation loc

bool isQualifier() const

Declared at: clang/include/clang/AST/TypeLoc.h:869

void setAttr(const clang::Attr* A)

Declared at: clang/include/clang/AST/TypeLoc.h:885

Parameters

const clang::Attr* A