-
Notifications
You must be signed in to change notification settings - Fork 272
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Attributes such as nonnull
, counted_by
, sized_by
, single
, ownership_holds
, if present in the source code could be recognized by the transpiler and would ideally enable generation of safer code. For instance, knowing what input parameter counts or sizes a pointer could allow us to emit an array or slice type where we'd normally emit a raw pointer. The single
annotation disallows pointer arithmetic.
Useful resources:
- clang docs on bounds annotations
- clang docs on ownership annotations
A separate but important question is how much code uses these attributes in the first place.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request