This change would have warned about the bug found in the previous patch.
No unit tests since the exception should never throw.
Details
Details
- Reviewers
mclow.lists - Commits
- rG27c4eaac8c06: [libc++] Validate the entire regex is consumed
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This looks good to me.
| libcxx/include/regex | ||
|---|---|---|
| 969 | Sadly, I think that placing it before 'unknown' *is* an ABI break, because we throw these error codes, and if people were to catch them - and dispatch on them, their code would break. | |
Comment Actions
Thanks for the review!
I don't have commit access, could you commit this patch?
| libcxx/include/regex | ||
|---|---|---|
| 969 | I feared it would. Updated the patch to remove this comment | |
Sadly, I think that placing it before 'unknown' *is* an ABI break, because we throw these error codes, and if people were to catch them - and dispatch on them, their code would break.