From 317412c5a981c5db25c331031d14e1fd9a71b95a Mon Sep 17 00:00:00 2001 From: Ian Hobson Date: Thu, 10 Nov 2022 11:30:06 +0100 Subject: [PATCH] Add with_cpp_compat to the builder --- src/bindgen/builder.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bindgen/builder.rs b/src/bindgen/builder.rs index 76a142c91..6ee06e9cd 100644 --- a/src/bindgen/builder.rs +++ b/src/bindgen/builder.rs @@ -149,6 +149,12 @@ impl Builder { self } + #[allow(unused)] + pub fn with_cpp_compat(mut self, cpp_compat: bool) -> Builder { + self.config.cpp_compat = cpp_compat; + self + } + #[allow(unused)] pub fn with_style(mut self, style: Style) -> Builder { self.config.style = style;