-qattr

Description

Produces a compiler listing that includes an attribute listing for all identifiers.

Syntax

Read syntax diagramSkip visual syntax diagram        .-noattr------------.
>>- -q--+-attr--+---------+-+----------------------------------><
                '-=--full-'

where:

-qnoattr Does not produce an attribute listing for identifiers in the program.
-qattr=full Reports all identifiers in the program.
-qattr Reports only those identifiers that are used.

See also #pragma options.

Notes

This option does not produce a cross-reference listing unless you also specify -qxref.

The -qnoprint option overrides this option.

If -qattr is specified after -qattr=full, it has no effect. The full listing is produced.

Example

To compile the program myprogram.C and produce a compiler listing of all identifiers, enter:

xlc++ myprogram.C -qxref -qattr=full

A typical cross-reference listing has the form:

Cross-reference listing format

Related information