Skip to content

Commit 6e2397f

Browse files
committed
Add required Builder methods
1 parent 8d83bdf commit 6e2397f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/lib.rs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,30 @@ impl Builder {
222222
self
223223
}
224224

225+
/// Emit Clang AST.
226+
pub fn emit_clang_ast(mut self) -> Builder {
227+
self.options.emit_ast = true;
228+
self
229+
}
230+
231+
/// Enable C++ namespaces.
232+
pub fn enable_cxx_namespaces(mut self) -> Builder {
233+
self.options.enable_cxx_namespaces = true;
234+
self
235+
}
236+
237+
/// Ignore functions.
238+
pub fn ignore_functions(mut self) -> Builder {
239+
self.options.ignore_functions = true;
240+
self
241+
}
242+
243+
/// Ignore methods.
244+
pub fn ignore_methods(mut self) -> Builder {
245+
self.options.ignore_methods = true;
246+
self
247+
}
248+
225249
/// Avoid generating any unstable Rust in the generated bindings.
226250
pub fn no_unstable_rust(mut self) -> Builder {
227251
self.options.unstable_rust = false;

0 commit comments

Comments
 (0)