View source code
Display the source code in dmd/attribsem.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Module dmd.attribsem

Does semantic analysis for attributes.

The term 'attribute' refers to things that can apply to a larger scope than a single declaration. Among them are: - Alignment (align(8)) - User defined attributes (@UDA) - Function Attributes (@safe) - Storage classes (static, __gshared) - Mixin declarations (mixin("int x;")) - Conditional compilation (static if, static foreach) - Linkage (extern(C)) - Anonymous structs / unions - Protection (private, public) - Deprecated declarations (@deprecated)

Documentation

https://dlang.org/phobos/dmd_attribsem.html

Coverage

https://codecov.io/gh/dlang/dmd/src/master/src/dmd/attribsem.d

Functions

NameDescription
foreachUda(sym, sc, dg) Iterates the UDAs attached to the given symbol.

Authors

Walter Bright

License

Boost License 1.0