clang API Documentation

clang::FormatAttr Class Reference

#include <Attr.h>

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

List of all members.

Public Member Functions

 FormatAttr (ASTContext &C, llvm::StringRef type, int idx, int first)
llvm::StringRef getType () const
void setType (ASTContext &C, llvm::StringRef type)
int getFormatIdx () const
int getFirstArg () const
virtual Attrclone (ASTContext &C) const

Static Public Member Functions

static bool classof (const Attr *A)
static bool classof (const FormatAttr *A)

Detailed Description

Definition at line 478 of file Attr.h.


Constructor & Destructor Documentation

clang::FormatAttr::FormatAttr ( ASTContext C,
llvm::StringRef  type,
int  idx,
int  first 
) [inline]

Definition at line 481 of file Attr.h.

Referenced by clone().


Member Function Documentation

static bool clang::FormatAttr::classof ( const FormatAttr A  )  [inline, static]

Definition at line 493 of file Attr.h.

static bool clang::FormatAttr::classof ( const Attr A  )  [inline, static]

Reimplemented from clang::Attr.

Definition at line 492 of file Attr.h.

References clang::Attr::getKind().

Attr * FormatAttr::clone ( ASTContext C  )  const [virtual]

Implements clang::Attr.

Definition at line 201 of file AttrImpl.cpp.

References FormatAttr(), and getType().

int clang::FormatAttr::getFirstArg (  )  const [inline]

Definition at line 487 of file Attr.h.

int clang::FormatAttr::getFormatIdx (  )  const [inline]

Definition at line 486 of file Attr.h.

llvm::StringRef clang::FormatAttr::getType (  )  const [inline]

Definition at line 484 of file Attr.h.

Referenced by clone().

void FormatAttr::setType ( ASTContext C,
llvm::StringRef  type 
)

Definition at line 37 of file AttrImpl.cpp.

References clang::AttrWithString::ReplaceString().


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