Extending Qt Creator Manual | Macro

Extending Qt Creator Manual 4.4.0

# Macro Class

(CPlusPlus::Macro)

- List of all members, including inherited members

## Public Functions

| Macro()
void | addFormal(const QByteArray &formal)
unsigned | bytesOffset() const
const QByteArray | definitionText() const
const QVector<PPToken> & | definitionTokens() const
QString | fileName() const
unsigned | fileRevision() const
const QVector<QByteArray> & | formals() const
bool | isFunctionLike() const
bool | isHidden() const
bool | isVariadic() const
unsigned | length() const
unsigned | line() const
QByteArray | name() const
QString | nameToQString() const
void | setBytesOffset(unsigned bytesOffset)
void | setDefinition(const QByteArray &definitionText, const QVector<PPToken> &definitionTokens)
void | setFileName(const QString &fileName)
void | setFileRevision(unsigned fileRevision)
void | setFunctionLike(bool isFunctionLike)
void | setHidden(bool isHidden)
void | setLength(unsigned length)
void | setLine(unsigned line)
void | setName(const QByteArray &name)
void | setUtf16charOffset(unsigned utf16charOffset)
void | setVariadic(bool isVariadic)
QString | toString() const
QString | toStringWithLineBreaks() const
unsigned | utf16CharOffset() const

## Member Function Documentation

### Macro::Macro()

Default constructs an instance of Macro.

### void Macro::addFormal(const QByteArray &formal)

### unsigned Macro::bytesOffset() const

See also setBytesOffset().

### const QByteArray Macro::definitionText() const

### const QVector<PPToken> &Macro::definitionTokens() const

### QString Macro::fileName() const

See also setFileName().

### unsigned Macro::fileRevision() const

See also setFileRevision().

### const QVector<QByteArray> &Macro::formals() const

### bool Macro::isFunctionLike() const

### bool Macro::isHidden() const

### bool Macro::isVariadic() const

### unsigned Macro::length() const

See also setLength().

### unsigned Macro::line() const

See also setLine().

### QByteArray Macro::name() const

See also setName().

### QString Macro::nameToQString() const

### void Macro::setBytesOffset(unsigned bytesOffset)

See also bytesOffset().

### void Macro::setDefinition(const QByteArray &definitionText, const QVector<PPToken> &definitionTokens)

### void Macro::setFileName(const QString &fileName)

See also fileName().

### void Macro::setFileRevision(unsigned fileRevision)

See also fileRevision().

### void Macro::setFunctionLike(bool isFunctionLike)

See also isFunctionLike().

### void Macro::setHidden(bool isHidden)

See also isHidden().

### void Macro::setLength(unsigned length)

See also length().

### void Macro::setLine(unsigned line)

See also line().

### void Macro::setName(const QByteArray &name)

See also name().

### void Macro::setUtf16charOffset(unsigned utf16charOffset)

### void Macro::setVariadic(bool isVariadic)

See also isVariadic().

### QString Macro::toString() const

### QString Macro::toStringWithLineBreaks() const

### unsigned Macro::utf16CharOffset() const