class HLSLShaderAttr

Declaration

class HLSLShaderAttr : public InheritableAttr { /* full declaration omitted */ };

Description

Attr - This represents one attribute.

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4603

Inherits from: InheritableAttr

Member Variables

private clang::HLSLShaderAttr::ShaderType type

Inherited from Attr:

protected Inherited
protected IsPackExpansion
protected Implicit
protected IsLateParsed
protected InheritEvenIfAlreadyPresent

Inherited from AttributeCommonInfo:

protected static SpellingNotCalculated = 15

Method Overview

  • public static const char * ConvertShaderTypeToStr(clang::HLSLShaderAttr::ShaderType Val)
  • public static bool ConvertStrToShaderType(llvm::StringRef Val, clang::HLSLShaderAttr::ShaderType & Out)
  • public static clang::HLSLShaderAttr * Create(clang::ASTContext & Ctx, clang::HLSLShaderAttr::ShaderType Type, const clang::AttributeCommonInfo & CommonInfo)
  • public static clang::HLSLShaderAttr * Create(clang::ASTContext & Ctx, clang::HLSLShaderAttr::ShaderType Type, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public static clang::HLSLShaderAttr * CreateImplicit(clang::ASTContext & Ctx, clang::HLSLShaderAttr::ShaderType Type, const clang::AttributeCommonInfo & CommonInfo = {clang::SourceRange{}})
  • public static clang::HLSLShaderAttr * CreateImplicit(clang::ASTContext & Ctx, clang::HLSLShaderAttr::ShaderType Type, clang::SourceRange Range, AttributeCommonInfo::Syntax Syntax)
  • public HLSLShaderAttr(clang::ASTContext & Ctx, const clang::AttributeCommonInfo & CommonInfo, clang::HLSLShaderAttr::ShaderType Type)
  • public static bool classof(const clang::Attr * A)
  • public clang::HLSLShaderAttr * clone(clang::ASTContext & C) const
  • public const char * getSpelling() const
  • public clang::HLSLShaderAttr::ShaderType getType() const
  • public void printPretty(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const

Inherited from InheritableAttr:

Inherited from Attr:

Inherited from AttributeCommonInfo:

Methods

static const char* ConvertShaderTypeToStr(
    clang::HLSLShaderAttr::ShaderType Val)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4645

Parameters

clang::HLSLShaderAttr::ShaderType Val

static bool ConvertStrToShaderType(
    llvm::StringRef Val,
    clang::HLSLShaderAttr::ShaderType& Out)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4644

Parameters

llvm::StringRef Val
clang::HLSLShaderAttr::ShaderType& Out

static clang::HLSLShaderAttr* Create(
    clang::ASTContext& Ctx,
    clang::HLSLShaderAttr::ShaderType Type,
    const clang::AttributeCommonInfo& CommonInfo)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4627

Parameters

clang::ASTContext& Ctx
clang::HLSLShaderAttr::ShaderType Type
const clang::AttributeCommonInfo& CommonInfo

static clang::HLSLShaderAttr* Create(
    clang::ASTContext& Ctx,
    clang::HLSLShaderAttr::ShaderType Type,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4629

Parameters

clang::ASTContext& Ctx
clang::HLSLShaderAttr::ShaderType Type
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

static clang::HLSLShaderAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::HLSLShaderAttr::ShaderType Type,
    const clang::AttributeCommonInfo& CommonInfo =
        {clang::SourceRange{}})

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4626

Parameters

clang::ASTContext& Ctx
clang::HLSLShaderAttr::ShaderType Type
const clang::AttributeCommonInfo& CommonInfo = {clang::SourceRange{}}

static clang::HLSLShaderAttr* CreateImplicit(
    clang::ASTContext& Ctx,
    clang::HLSLShaderAttr::ShaderType Type,
    clang::SourceRange Range,
    AttributeCommonInfo::Syntax Syntax)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4628

Parameters

clang::ASTContext& Ctx
clang::HLSLShaderAttr::ShaderType Type
clang::SourceRange Range
AttributeCommonInfo::Syntax Syntax

HLSLShaderAttr(
    clang::ASTContext& Ctx,
    const clang::AttributeCommonInfo& CommonInfo,
    clang::HLSLShaderAttr::ShaderType Type)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4632

Parameters

clang::ASTContext& Ctx
const clang::AttributeCommonInfo& CommonInfo
clang::HLSLShaderAttr::ShaderType Type

static bool classof(const clang::Attr* A)

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4648

Parameters

const clang::Attr* A

clang::HLSLShaderAttr* clone(
    clang::ASTContext& C) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4636

Parameters

clang::ASTContext& C

const char* getSpelling() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4639

clang::HLSLShaderAttr::ShaderType getType() const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4640

void printPretty(
    llvm::raw_ostream& OS,
    const clang::PrintingPolicy& Policy) const

Declared at: build/tools/clang/include/clang/AST/Attrs.inc:4637

Parameters

llvm::raw_ostream& OS
const clang::PrintingPolicy& Policy