diff options
author | Jeff Waugh <jdub@bethesignal.org> | 2016-11-08 19:55:49 +1100 |
---|---|---|
committer | Jeff Waugh <jdub@bethesignal.org> | 2016-11-09 22:42:25 +1100 |
commit | 6e2397f579407590af0ee7bba0d79ba466f7f02f (patch) | |
tree | 3b09745411848f01601bb71802f1263c99ea6df7 | |
parent | 8d83bdfb48e292abd7db5a3093aefce0c893d3a5 (diff) |
Add required Builder methods
-rwxr-xr-x | src/lib.rs | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -222,6 +222,30 @@ impl Builder { self } + /// Emit Clang AST. + pub fn emit_clang_ast(mut self) -> Builder { + self.options.emit_ast = true; + self + } + + /// Enable C++ namespaces. + pub fn enable_cxx_namespaces(mut self) -> Builder { + self.options.enable_cxx_namespaces = true; + self + } + + /// Ignore functions. + pub fn ignore_functions(mut self) -> Builder { + self.options.ignore_functions = true; + self + } + + /// Ignore methods. + pub fn ignore_methods(mut self) -> Builder { + self.options.ignore_methods = true; + self + } + /// Avoid generating any unstable Rust in the generated bindings. pub fn no_unstable_rust(mut self) -> Builder { self.options.unstable_rust = false; |