summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poveda Ruiz <31802960+pvdrz@users.noreply.github.com>2022-12-15 16:02:28 -0500
committerGitHub <noreply@github.com>2022-12-15 16:02:28 -0500
commit87b535c3c1089a09632e4d3a1541bd53bb40f55e (patch)
tree4907f17d69fde4a36b29d0d04850747e0d89e006
parentc17c292c7328c5c91c42a875dd10aeb03c9e4e6f (diff)
Extend documentation about deprecation of wildcard patterns (#2374)
-rw-r--r--CHANGELOG.md3
-rw-r--r--bindgen/lib.rs4
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b7b5386..144805d1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -201,7 +201,8 @@
## Changed
* Regex inputs are sanitized so alternation (`a|b`) is handled correctly but
- wildcard patterns (`*`) are now considered invalid.
+ wildcard patterns (`*`) are now considered invalid. The `.*` pattern can be
+ used as a replacement.
* the `ParseCallbacks`trait does not require to implement `UnwindSafe`.
* the `Builder::parse_callbacks` method no longer overwrites previously added
callbacks and composes them in a last-to-first manner.
diff --git a/bindgen/lib.rs b/bindgen/lib.rs
index 6f943e69..46444a93 100644
--- a/bindgen/lib.rs
+++ b/bindgen/lib.rs
@@ -244,6 +244,10 @@ impl Default for CodegenConfig {
/// regular expressions as arguments. These regular expressions will be parenthesized and wrapped
/// in `^` and `$`. So if `<regex>` is passed as argument, the regular expression to be stored will
/// be `^(<regex>)$`.
+///
+/// Releases of `bindgen` with a version lesser or equal to `0.62.0` used to accept the wildcard
+/// pattern `*` as a valid regular expression. This behavior has been deprecated and the `.*`
+/// pattern must be used instead.
#[derive(Debug, Default, Clone)]
pub struct Builder {
options: BindgenOptions,