Repository navigation
migrate --facade: annotations the library ships (D121 step 3, Clang half) - #2424
Merged
Merged
Conversation
…15). The Clang bridge reads a declaration's `__attribute__((…))` tokens as `noreturn` is read (with_cimport_fn_attributes: `malloc;nonnull(1,2);returns_nonnull`), the corpus records them on the symbol from every declaration, and the proof engine uses `malloc` where the body proves nothing: the return is a fresh allocation the caller owns, drafted with the provenance `annotation:` (below a proof, above the registry, §16.2b.2; a proof that returns a part of a parameter wins). The report names every attribute a function carries; nullability attributes are header facts c_import reads directly. Selfhost: buf_alloc, whose body calls a function the package does not define, is an owned producer by its annotation. GObject-introspection transfer annotations are the step's other half, still open.
Contributor
Author
|
Battery on 088a01b under the pinned seed: GREEN, wall 339 s. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
D121 step 3 (§16.2b.15 item 2), the Clang half: the bridge reads a declaration's
__attribute__((…))tokens (with_cimport_fn_attributes), the corpus records them, and the proof engine usesmallocwhere the body proves nothing: an owned producer drafted with the provenanceannotation:, below a proof and above the registry. The report names every attribute a function carries. Selfhost:buf_alloc, whose body calls a function the package does not define, becomes a producer by its annotation. GObject-introspection transfer annotations (a.girinput) are the other half, open. Gate green;:c-migrator-basic-testsgreen with the release binary. Battery: pending.