Skip to content

Support '+' separator in feature depends#2622

Merged
asuessenbach merged 1 commit into
mainfrom
fix-feature-depends-separator
Jul 21, 2026
Merged

Support '+' separator in feature depends#2622
asuessenbach merged 1 commit into
mainfrom
fix-feature-depends-separator

Conversation

@dgkoch

@dgkoch dgkoch commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

The Vulkan dependency syntax defines '+' as logical AND and ',' as logical OR.
The depends attribute on <feature> elements always intends AND semantics,
but historically used ',' as the separator. Future XML corrections will use
the proper '+' separator (see https://gitlab.khronos.org/vulkan/vulkan/-/issues/4912).

Switch from tokenize(..., ",") to tokenizeAny(..., ",+") so the parser
accepts both forms — backward-compatible with current XML, forward-compatible
with the corrected XML.

▎ GenAI disclosure: Draft assisted by Claude (claude-sonnet-4-6[1m], Anthropic, commercial SaaS — Claude Code CLI).

The Vulkan dependency syntax defines '+' as logical AND and ',' as
logical OR. The depends attribute on <feature> elements always intends
AND semantics, but historically used ',' as the separator. Future XML
will use the correct '+' separator.

Switch from tokenize(..., ",") to tokenizeAny(..., ",+") so the parser
accepts both forms, remaining backward-compatible with current XML while
being forward-compatible with the corrected XML.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@dgkoch
dgkoch requested a review from asuessenbach July 20, 2026 17:14
@asuessenbach

Copy link
Copy Markdown
Contributor

Thanks for this little adjustment.

@asuessenbach
asuessenbach merged commit f07fbb7 into main Jul 21, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants