Skip to content

--disable-name-namespacing has no effect on vtable functions #2438

Open
@Supreeeme

Description

@Supreeeme

Input C/C++ Header

class TestClass {
public:
	virtual void method() = 0;
};

Bindgen Invocation

$ bindgen input.h --vtable-generation --disable-name-namespacing header.h -- -x c++

Actual Results

#[repr(C)]
pub struct TestClass__bindgen_vtable {
    pub TestClass_method: unsafe extern "C" fn(this: *mut TestClass),
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TestClass {
    pub vtable_: *const TestClass__bindgen_vtable,
}

Expected Results

The TestClass prefix for TestClass_method should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions