summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-10-24 13:03:36 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2016-10-24 13:03:36 -0700
commit0f0fd83aaa95dcec181d33e0d5eb269e008eabb9 (patch)
tree60fdce0a091d91bf8e7b4723e791cc08ce8a52b6
parentf837823de648fd8da547ad7182ca585a791b8ef2 (diff)
Remove the ignored and unused --no-type-renaming flag and option
-rwxr-xr-xsrc/bin/bindgen.rs5
-rwxr-xr-xsrc/lib.rs7
-rw-r--r--tests/headers/class_with_typedef.hpp1
-rw-r--r--tests/headers/crtp.hpp2
-rw-r--r--tests/headers/vtable_recursive_sig.hpp2
5 files changed, 1 insertions, 16 deletions
diff --git a/src/bin/bindgen.rs b/src/bin/bindgen.rs
index 65d01545..183257c8 100755
--- a/src/bin/bindgen.rs
+++ b/src/bin/bindgen.rs
@@ -58,8 +58,6 @@ Options:
--enable-cxx-namespaces Enable support for C++ namespaces.
- --no-type-renaming Don't rename types.
-
--emit-clang-ast Output the ast (for debugging purposes)
--use-msvc-mangling Handle MSVC C++ ABI mangling; requires that
@@ -166,9 +164,6 @@ fn parse_args_or_exit(args: Vec<String>) -> (BindgenOptions, Box<io::Write>) {
"--enable-cxx-namespaces" => {
options.enable_cxx_namespaces = true;
}
- "--no-type-renaming" => {
- options.rename_types = false;
- }
"--no-unstable-rust" => {
options.unstable_rust = false;
}
diff --git a/src/lib.rs b/src/lib.rs
index 8c5b12a4..c1aec66d 100755
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -119,11 +119,6 @@ impl Builder {
self
}
- pub fn rename_types(mut self, value: bool) -> Builder {
- self.options.rename_types = value;
- self
- }
-
pub fn disable_class_constants(mut self) -> Builder {
self.options.class_constants = false;
self
@@ -148,7 +143,6 @@ pub struct BindgenOptions {
pub ignore_functions: bool,
pub ignore_methods: bool,
pub enable_cxx_namespaces: bool,
- pub rename_types: bool,
pub derive_debug: bool,
/// Generate or not only stable rust.
pub unstable_rust: bool,
@@ -176,7 +170,6 @@ impl Default for BindgenOptions {
emit_ast: false,
ignore_functions: false,
ignore_methods: false,
- rename_types: true,
derive_debug: true,
enable_cxx_namespaces: false,
override_enum_ty: "".to_string(),
diff --git a/tests/headers/class_with_typedef.hpp b/tests/headers/class_with_typedef.hpp
index 41a3cfd7..8e09e8db 100644
--- a/tests/headers/class_with_typedef.hpp
+++ b/tests/headers/class_with_typedef.hpp
@@ -1,4 +1,3 @@
-// bindgen-flags: --no-type-renaming
// bindgen-features: llvm_stable
typedef int AnotherInt;
diff --git a/tests/headers/crtp.hpp b/tests/headers/crtp.hpp
index 1f799b3d..a5477c54 100644
--- a/tests/headers/crtp.hpp
+++ b/tests/headers/crtp.hpp
@@ -1,5 +1,3 @@
-// bindgen-flags: --no-type-renaming
-
template<class T>
class Base {};
diff --git a/tests/headers/vtable_recursive_sig.hpp b/tests/headers/vtable_recursive_sig.hpp
index 1556f866..8729be00 100644
--- a/tests/headers/vtable_recursive_sig.hpp
+++ b/tests/headers/vtable_recursive_sig.hpp
@@ -1,4 +1,4 @@
-// bindgen-flags: --no-type-renaming -- -std=c++11
+// bindgen-flags: -- -std=c++11
class Derived;
class Base {