Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add AddUnknownPattern() and AddMissingPattern().#1442

Merged
copybara-service[bot] merged 1 commit into
mastercel-expr/cel-cpp:masterfrom
test_748615528cel-expr/cel-cpp:test_748615528Copy head branch name to clipboard
Apr 17, 2025
Merged

Add AddUnknownPattern() and AddMissingPattern().#1442
copybara-service[bot] merged 1 commit into
mastercel-expr/cel-cpp:masterfrom
test_748615528cel-expr/cel-cpp:test_748615528Copy head branch name to clipboard

Conversation

@copybara-service

Copy link
Copy Markdown

Add AddUnknownPattern() and AddMissingPattern().

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

The other activation functions can be used incrementally, but SetUnknownPatterns() and SetMissingPatterns() cannot. This makes it a bit annoying to use, since you can't have a wrapper function that either binds an attribute or add an unknown pattern, that you could for example call in a loop.

Since attribute patterns are just a vector anyway, it is easy to make it support incremental additions.

PiperOrigin-RevId: 748766532
@copybara-service copybara-service Bot merged commit 050b21e into master Apr 17, 2025
@copybara-service copybara-service Bot deleted the test_748615528 branch April 17, 2025 19:14
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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.