invoke-ssaf feature availability#196168
Closed
t-rasmud wants to merge 10000 commits into
Closed
Conversation
added 30 commits
May 4, 2026 14:09
Upstream commit c3761b6 ("[clang] Add formal linkage to textual AST dump (llvm#194600)") teaches TextNodeDumper to print formal linkage (external-linkage / internal-linkage / module-linkage) for NamedDecls in textual AST dumps. Insert external-linkage between definition and instantiated_from in all 13 ClassTemplateSpecializationDecl CHECKs in the test.
) The RFC for typed allocator support was approved quite a while ago, and this PR actually begins the actual upstreaming process. This PR includes all of the code machinery: the annotations, the type inference, the encoding of the inferred type, and the final call re-writing. Due to the complexity of the inference especially, I've broken the implementation into separate files, SemaTypedMemory.cpp containing the attribute parsing and diagnostics, and CGTypedMemory.cpp to actually handle the destination rewriting and planting the descriptors. The core inference is handled in TypedMemoryInference.cpp, with the other TypedMemory* files providing supporting functionality. The core details can be found in clang/docs/TypedMemoryOperations.rst and the original RFC at https://discourse.llvm.org/t/rfc-typed-allocator-support/79720
Registers the invoke-ssaf feature in features.json so that build systems and tools can query clang's feature availability and conditionally enable SSAF invocation support.
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.
No description provided.