diff options
author | Yisu Rem Wang <remy.sucre@gmail.com> | 2020-06-11 23:13:56 -0700 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-06-12 11:38:50 +0200 |
commit | 8078ad6f46e79930317719a514c9b87561f76a56 (patch) | |
tree | 3d984ae0d0703ab935c098ccb0e7adc2400204af | |
parent | 16189e443c86f06351ef4b8e1c729b67df9d8bc1 (diff) |
Fix regex to be marked opaque
While `std::*` makes informal sense, the user may be mislead into calling `opaque_type("std::*")` instead of the correct `opaque_type("std::.*")` (as I was).
-rw-r--r-- | book/src/cpp.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/book/src/cpp.md b/book/src/cpp.md index 8a790407..6fef6391 100644 --- a/book/src/cpp.md +++ b/book/src/cpp.md @@ -12,10 +12,10 @@ force C++ mode. You probably also want to use `-std=c++14` or similar clang args as well. You pretty much **must** use [whitelisting](./whitelisting.md) when working -with C++ to avoid pulling in all of the `std::*` types, many of which `bindgen` +with C++ to avoid pulling in all of the `std::.*` types, many of which `bindgen` cannot handle. Additionally, you may want to mark other types as [opaque](./opaque.md) that `bindgen` stumbles on. It is recommended to mark -all of `std::*` opaque, and to whitelist only precisely the functions and types +all of `std::.*` opaque, and to whitelist only precisely the functions and types you intend to use. You should read up on the [FAQs](./faq.md) as well. |