Conversation
Adds the scalar/arithmetic/floating/aggregate/object classifiers and pointer/integer/floating representation flags on Type, the constrained/decltype/GNU predicates on AutoType, VectorKind on VectorType, and HasTrailingReturn/NoexceptExpr on FunctionProtoType. getExceptionType enumeration is left unsurfaced; it needs a getNumExceptions count bridge that isn't exposed today. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Surfaces the clang 22
Type-side classification predicates andFunctionProtoTypeexception-spec accessors on the managed AST, now that the v22 libClangSharp port bridges them. Managed-only; no native or generated-binding changes. Complements the cursor-side predicates from #808.Type classifiers --
IsScalarType,IsArithmeticType,IsFloatingType,IsRealFloatingType,IsAggregateType,IsObjectType, plus theHasPointerRepresentation/HasIntegerRepresentation/HasFloatingRepresentationflags. These dispatch on the genericType, so they live onTypeand forward through new mid-layerCXTypeaccessors.AutoType --
IsConstrained,IsDecltypeAuto,IsGNUAutoType.VectorType --
VectorKind(CX_VectorKind).FunctionProtoType --
HasTrailingReturnandNoexceptExpr.ExceptionSpecTypewas already surfaced.The per-exception
getExceptionType(i)enumeration is intentionally not surfaced: it's guarded natively bygetNumExceptions(), but no count bridge is exposed today, so a clean list would need a new native shim.Interop tests cover the classifiers,
AutoTypepredicates,VectorKind, and theFunctionProtoTypeset; full suite green, 0 warnings.Note
Authored with Copilot.