From 874e0305626d32aa7ccba9458a8befb82d76f2fc Mon Sep 17 00:00:00 2001 From: Sergey Lyskov Date: Thu, 1 Feb 2024 14:55:38 -0700 Subject: [PATCH 1/2] refactor self-test.py to use python3 --- source/type.cpp | 19 ++++++++++++++++--- test/self-test.py | 40 ++++++++++++++++++++++++++++++++++++---- 2 files changed, 52 insertions(+), 7 deletions(-) diff --git a/source/type.cpp b/source/type.cpp index 2adf346d..ab52d34e 100644 --- a/source/type.cpp +++ b/source/type.cpp @@ -458,7 +458,11 @@ void request_bindings(clang::QualType const &qt, Context &context) /// return standard string representation of a given type std::string standard_name(clang::QualType const &qt) { - //qt.dump(); + //qt.getUnqualifiedType().dump(); + //qt->getCanonicalTypeInternal().dump(); + //qt.getTypePtr()->dump(); + //outs() << qt->getTypeClassName() << '\n'; + string r = qt.getAsString(); // if( r == "std::array::size_type" ) { @@ -468,9 +472,18 @@ std::string standard_name(clang::QualType const &qt) // } // if( begins_with(r, "std::") ) return r; //standard_name(r); - static std::set standard_names {"std::size_t"}; - if( standard_names.count(r) ) return r; + // static std::set standard_names {"std::size_t"}; + // if( standard_names.count(r) ) return r; + // else return standard_name(qt.getCanonicalType().getAsString()); + + + // static std::set standard_names {"std::size_t"}; + // if( standard_names.count(r) ) return r; + // else return standard_name(qt.getCanonicalType().getAsString()); + + static std::set standard_names_to_ignore {"std::size_t", }; // "std::array::size_type", + if( standard_names_to_ignore.count(r) ) return r; else return standard_name(qt.getCanonicalType().getAsString()); } diff --git a/test/self-test.py b/test/self-test.py index f363207a..af861213 100755 --- a/test/self-test.py +++ b/test/self-test.py @@ -44,6 +44,20 @@ def execute(message, command_line, return_='status', until_successes=False, term else: return exit_code +class NT: # named tuple + def __init__(self, **entries): self.__dict__.update(entries) + def __repr__(self): + r = 'NT: |' + for i in dir(self): + print(i) + if not i.startswith('__') and i != '_as_dict' and not isinstance(getattr(self, i), types_module.MethodType): r += '%s --> %s, ' % (i, getattr(self, i)) + return r[:-2]+'|' + + @property + def _as_dict(self): + return { a: getattr(self, a) for a in dir(self) if not a.startswith('__') and a != '_as_dict' and not isinstance(getattr(self, a), types_module.MethodType)} + + def get_test_files(dir_): return [dir_ + '/' + f for f in os.listdir(dir_) if f.startswith('T') and f.endswith('.hpp')] @@ -57,7 +71,23 @@ def remover_absolute_paths(source): with open(source, 'w') as f: f.write(data.replace(path, 'TEST')) -def run_test(test_path, build_dir): +def get_python_environment(): + ''' calculate python include dir and lib dir from given python executable path + ''' + python = sys.executable + python_bin_dir = python.rpartition('/')[0] + python_config = f'{python} {python}-config' if python.endswith('2.7') else f'{python}-config' + + info = execute('Getting python configuration info...', f'unset __PYVENV_LAUNCHER__ && cd {python_bin_dir} && PATH=.:$PATH && {python_config} --prefix --includes', return_='output').replace('\r', '').split('\n') # Python-3 only: --abiflags + python_prefix = info[0] + python_include_dir = info[1].split()[0][len('-I'):] + python_lib_dir = python_prefix + '/lib' + + return NT(python=python, python_include_dir=python_include_dir, python_lib_dir=python_lib_dir) + + + +def run_test(test_path, build_dir, pyenv): if not os.path.isfile(test_path): print('Could not find test file: {} ... Exiting...'.format(test_path)); sys.exit(1) test = os.path.basename(test_path) @@ -79,7 +109,8 @@ def run_test(test_path, build_dir): with open(cli_file_name) as f: cli = ' ' + f.read() except FileNotFoundError as e: cli = '' - python_includes = '-I/usr/include/python2.7' + python = pyenv.python + python_includes = '-I'+pyenv.python_include_dir #'-I/usr/include/python2.7' command_line = '{binder} --bind "" --root-module {root_module} --prefix {build_dir} --single-file --annotate-includes {config}{cli} {source} -- -x c++ -std=c++11 -I {source_dir} -I {source_dir}/.. -isystem {pybind11} {python_includes}' \ .format(binder=Options.binder, root_module=root_module, build_dir=build_dir, source_dir=source_dir, cli=cli, source=source_include, @@ -90,7 +121,7 @@ def run_test(test_path, build_dir): command_line = 'cd {build_dir} && clang++ -O3 -shared -std=c++11 -isystem {pybind11} {python_includes} -I./.. -I./../.. -I./../../source {root_module}.cpp -o {root_module}.so -fPIC'.format(pybind11=Options.pybind11, root_module=root_module, build_dir=build_dir, python_includes=python_includes) execute('{} Compiling binding results...'.format(test), command_line); - command_line = "cd {build_dir} && python2.7 -c 'import {root_module}'".format(root_module=root_module, build_dir=build_dir) + command_line = f"cd {build_dir} && {python} -c 'import {root_module}'" execute('{} Testing imports...'.format(test), command_line); ref = source_dir + '/' + test_name + '.ref.cpp' @@ -134,7 +165,8 @@ def main(): os.makedirs(build_dir) #if not os.path.isdir(build_dir): os.makedirs(build_dir) - for t in tests: run_test(t, build_dir) + pyenv = get_python_environment() + for t in tests: run_test(t, build_dir, pyenv) print('Done!') From 45a73086761e64b29d7876feca11e6831c005a8c Mon Sep 17 00:00:00 2001 From: Sergey Lyskov Date: Fri, 15 Mar 2024 18:43:04 -0600 Subject: [PATCH 2/2] remove line number from test reference files --- test/T00.basic.ref.cpp | 36 +++++----- test/T01.enum.config | 2 + test/T01.enum.hpp | 1 + test/T01.enum.ref.cpp | 10 +-- test/T02.function.ref.cpp | 76 ++++++++++---------- test/T05.default.ref.cpp | 10 +-- test/T07.class.match_args.ref.cpp | 2 +- test/T07.class.ref.cpp | 16 ++--- test/T08.constructor.ref.cpp | 16 ++--- test/T09.overload.ref.cpp | 14 ++-- test/T10.inheritance.ref.cpp | 22 +++--- test/T10.virtual_inheritance.ref.cpp | 16 ++--- test/T11.override.ref.cpp | 4 +- test/T12.insertion_operator.ref.cpp | 12 ++-- test/T12.operator.ref.cpp | 2 +- test/T15.copy.ref.cpp | 14 ++-- test/T15.inner_class.fwd.ref.cpp | 8 +-- test/T15.inner_class.ref.cpp | 22 +++--- test/T17.anonymous.ref.cpp | 16 ++--- test/T20.template.ref.cpp | 30 ++++---- test/T20.template.variadic.ref.cpp | 10 +-- test/T30.include.ref.cpp | 6 +- test/T31.include_for_class.ref.cpp | 4 +- test/T32.call_guard.ref.cpp | 4 +- test/T33.buffer_protocol.ref.cpp | 2 +- test/T40.stl.ref.cpp | 6 +- test/T42.stl.names.map.ref.cpp | 30 ++++---- test/T42.stl.names.multi.ref.cpp | 36 +++++----- test/T42.stl.names.multimap.ref.cpp | 22 +++--- test/T42.stl.names.multiset.ref.cpp | 14 ++-- test/T42.stl.names.ref.cpp | 28 ++++---- test/T42.stl.names.set.ref.cpp | 18 ++--- test/T43.stl.pybind11_include_stl.ref.cpp | 2 +- test/T50.add_on_binder.ref.cpp | 2 +- test/T50.namespace_binder.ref.cpp | 4 +- test/T60.custom_shared.ref.cpp | 8 +-- test/T60.pybind11.ref.cpp | 46 ++++++------ test/T70.module_local.ref.cpp | 4 +- test/T70.options.ref.cpp | 14 ++-- test/T71.module_local.ref.cpp | 6 +- test/T80.custom_trampoline.ref.cpp | 4 +- test/T81.custom_trampoline_with_args.ref.cpp | 4 +- test/self-test.py | 4 +- 43 files changed, 305 insertions(+), 302 deletions(-) diff --git a/test/T00.basic.ref.cpp b/test/T00.basic.ref.cpp index 1e304e38..aafaa167 100644 --- a/test/T00.basic.ref.cpp +++ b/test/T00.basic.ref.cpp @@ -19,52 +19,52 @@ void bind_T00_basic(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo() file:T00.basic.hpp line:25 + // foo() file:T00.basic.hpp line: M("").def("foo", (void (*)()) &foo, "C++: foo() --> void"); - // foo_char(char) file:T00.basic.hpp line:29 + // foo_char(char) file:T00.basic.hpp line: M("").def("foo_char", (int (*)(char)) &foo_char, "C++: foo_char(char) --> int", pybind11::arg("")); - // foo_char(char &) file:T00.basic.hpp line:33 + // foo_char(char &) file:T00.basic.hpp line: M("").def("foo_char", (int (*)(char &)) &foo_char, "C++: foo_char(char &) --> int", pybind11::arg("")); - // foo_char(char *) file:T00.basic.hpp line:37 + // foo_char(char *) file:T00.basic.hpp line: M("").def("foo_char", (int (*)(char *)) &foo_char, "C++: foo_char(char *) --> int", pybind11::arg("")); - // foo_int(int) file:T00.basic.hpp line:42 + // foo_int(int) file:T00.basic.hpp line: M("").def("foo_int", (int (*)(int)) &foo_int, "C++: foo_int(int) --> int", pybind11::arg("")); - // foo_int(int &) file:T00.basic.hpp line:46 + // foo_int(int &) file:T00.basic.hpp line: M("").def("foo_int", (int (*)(int &)) &foo_int, "C++: foo_int(int &) --> int", pybind11::arg("")); - // foo_int(int *) file:T00.basic.hpp line:50 + // foo_int(int *) file:T00.basic.hpp line: M("").def("foo_int", (int (*)(int *)) &foo_int, "C++: foo_int(int *) --> int", pybind11::arg("")); - // foo_float(float) file:T00.basic.hpp line:55 + // foo_float(float) file:T00.basic.hpp line: M("").def("foo_float", (float (*)(float)) &foo_float, "C++: foo_float(float) --> float", pybind11::arg("")); - // foo_float(float &) file:T00.basic.hpp line:59 + // foo_float(float &) file:T00.basic.hpp line: M("").def("foo_float", (float (*)(float &)) &foo_float, "C++: foo_float(float &) --> float", pybind11::arg("")); - // foo_float(float *) file:T00.basic.hpp line:63 + // foo_float(float *) file:T00.basic.hpp line: M("").def("foo_float", (float (*)(float *)) &foo_float, "C++: foo_float(float *) --> float", pybind11::arg("")); - // foo_double(double) file:T00.basic.hpp line:68 + // foo_double(double) file:T00.basic.hpp line: M("").def("foo_double", (double (*)(double)) &foo_double, "C++: foo_double(double) --> double", pybind11::arg("")); - // foo_double(double &) file:T00.basic.hpp line:72 + // foo_double(double &) file:T00.basic.hpp line: M("").def("foo_double", (double (*)(double &)) &foo_double, "C++: foo_double(double &) --> double", pybind11::arg("")); - // foo_double(double *) file:T00.basic.hpp line:76 + // foo_double(double *) file:T00.basic.hpp line: M("").def("foo_double", (double (*)(double *)) &foo_double, "C++: foo_double(double *) --> double", pybind11::arg("")); - // foo_void_p(void *) file:T00.basic.hpp line:83 + // foo_void_p(void *) file:T00.basic.hpp line: M("").def("foo_void_p", (void * (*)(void *)) &foo_void_p, "C++: foo_void_p(void *) --> void *", pybind11::return_value_policy::automatic, pybind11::arg("")); - // foo_void_p(void *const &) file:T00.basic.hpp line:87 + // foo_void_p(void *const &) file:T00.basic.hpp line: M("").def("foo_void_p", (void * (*)(void *const &)) &foo_void_p, "C++: foo_void_p(void *const &) --> void *", pybind11::return_value_policy::automatic, pybind11::arg("")); - // foo_void_p(void *&) file:T00.basic.hpp line:91 + // foo_void_p(void *&) file:T00.basic.hpp line: M("").def("foo_void_p", (void * (*)(void *&)) &foo_void_p, "C++: foo_void_p(void *&) --> void *", pybind11::return_value_policy::automatic, pybind11::arg("")); } @@ -86,7 +86,7 @@ void bind_T00_basic(std::function< pybind11::module &(std::string const &namespa void bind_T00_basic_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // global::foo() file:T00.basic.hpp line:97 + // global::foo() file:T00.basic.hpp line: M("global").def("foo", (void (*)()) &global::foo, "C++: global::foo() --> void"); } @@ -108,7 +108,7 @@ void bind_T00_basic_1(std::function< pybind11::module &(std::string const &names void bind_T00_basic_2(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // nonlocal::foo() file:T00.basic.hpp line:102 + // nonlocal::foo() file:T00.basic.hpp line: M("nonlocal").def("foo", (void (*)()) &nonlocal::foo, "C++: nonlocal::foo() --> void"); } diff --git a/test/T01.enum.config b/test/T01.enum.config index 58493b69..67dffaea 100644 --- a/test/T01.enum.config +++ b/test/T01.enum.config @@ -1,5 +1,7 @@ -namespace aaaa +-enum E4_not_binded + -enum E6_class_not_binded +enum aaaa::E7_class diff --git a/test/T01.enum.hpp b/test/T01.enum.hpp index 494be86d..7ec42dbb 100644 --- a/test/T01.enum.hpp +++ b/test/T01.enum.hpp @@ -18,6 +18,7 @@ enum E1 { E1_V0, E1_V1 }; enum struct E2_struct { V0, V1 }; enum class E3_class { V0, V1 }; +enum E4_not_binded { E4_V0, E4_V1 }; class A { diff --git a/test/T01.enum.ref.cpp b/test/T01.enum.ref.cpp index f8efe690..77ddd5c3 100644 --- a/test/T01.enum.ref.cpp +++ b/test/T01.enum.ref.cpp @@ -18,7 +18,7 @@ void bind_T01_enum(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // E1 file:T01.enum.hpp line:16 + // E1 file:T01.enum.hpp line: pybind11::enum_(M(""), "E1", pybind11::arithmetic(), "") .value("E1_V0", E1_V0) .value("E1_V1", E1_V1) @@ -26,7 +26,7 @@ void bind_T01_enum(std::function< pybind11::module &(std::string const &namespac ; - // E2_struct file:T01.enum.hpp line:18 + // E2_struct file:T01.enum.hpp line: pybind11::enum_(M(""), "E2_struct", "") .value("V0", E2_struct::V0) .value("V1", E2_struct::V1) @@ -34,14 +34,14 @@ void bind_T01_enum(std::function< pybind11::module &(std::string const &namespac ; - // E3_class file:T01.enum.hpp line:19 + // E3_class file:T01.enum.hpp line: pybind11::enum_(M(""), "E3_class", "") .value("V0", E3_class::V0) .value("V1", E3_class::V1); ; - { // A file:T01.enum.hpp line:22 + { // A file:T01.enum.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); @@ -82,7 +82,7 @@ void bind_T01_enum(std::function< pybind11::module &(std::string const &namespac void bind_T01_enum_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // aaaa::E7_class file:T01.enum.hpp line:46 + // aaaa::E7_class file:T01.enum.hpp line: pybind11::enum_(M("aaaa"), "E7_class", "") .value("V0", aaaa::E7_class::V0) .value("V1", aaaa::E7_class::V1); diff --git a/test/T02.function.ref.cpp b/test/T02.function.ref.cpp index 43a88a66..897683c9 100644 --- a/test/T02.function.ref.cpp +++ b/test/T02.function.ref.cpp @@ -29,119 +29,119 @@ void bind_T02_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // A file:T02.function.hpp line:20 + { // A file:T02.function.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); } - // foo(bool) file:T02.function.hpp line:24 + // foo(bool) file:T02.function.hpp line: M("").def("foo", (void (*)(bool)) &foo, "C++: foo(bool) --> void", pybind11::arg("")); - // foo(int) file:T02.function.hpp line:27 + // foo(int) file:T02.function.hpp line: M("").def("foo", (void (*)(int)) &foo, "C++: foo(int) --> void", pybind11::arg("")); - // foo(long) file:T02.function.hpp line:30 + // foo(long) file:T02.function.hpp line: M("").def("foo", (void (*)(long)) &foo, "C++: foo(long) --> void", pybind11::arg("")); - // foo(float) file:T02.function.hpp line:33 + // foo(float) file:T02.function.hpp line: M("").def("foo", (void (*)(float)) &foo, "C++: foo(float) --> void", pybind11::arg("")); - // foo(double) file:T02.function.hpp line:36 + // foo(double) file:T02.function.hpp line: M("").def("foo", (void (*)(double)) &foo, "C++: foo(double) --> void", pybind11::arg("")); - // foo(class A) file:T02.function.hpp line:39 + // foo(class A) file:T02.function.hpp line: M("").def("foo", (void (*)(class A)) &foo, "C++: foo(class A) --> void", pybind11::arg("")); - // foo(class std::shared_ptr) file:T02.function.hpp line:42 + // foo(class std::shared_ptr) file:T02.function.hpp line: M("").def("foo", (void (*)(class std::shared_ptr)) &foo, "C++: foo(class std::shared_ptr) --> void", pybind11::arg("")); - // foo_r(bool &) file:T02.function.hpp line:46 + // foo_r(bool &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(bool &)) &foo_r, "C++: foo_r(bool &) --> void", pybind11::arg("")); - // foo_r(int &) file:T02.function.hpp line:49 + // foo_r(int &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(int &)) &foo_r, "C++: foo_r(int &) --> void", pybind11::arg("")); - // foo_r(long &) file:T02.function.hpp line:52 + // foo_r(long &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(long &)) &foo_r, "C++: foo_r(long &) --> void", pybind11::arg("")); - // foo_r(float &) file:T02.function.hpp line:55 + // foo_r(float &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(float &)) &foo_r, "C++: foo_r(float &) --> void", pybind11::arg("")); - // foo_r(double &) file:T02.function.hpp line:58 + // foo_r(double &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(double &)) &foo_r, "C++: foo_r(double &) --> void", pybind11::arg("")); - // foo_r(class A &) file:T02.function.hpp line:61 + // foo_r(class A &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(class A &)) &foo_r, "C++: foo_r(class A &) --> void", pybind11::arg("")); - // foo_r(class std::shared_ptr &) file:T02.function.hpp line:64 + // foo_r(class std::shared_ptr &) file:T02.function.hpp line: M("").def("foo_r", (void (*)(class std::shared_ptr &)) &foo_r, "C++: foo_r(class std::shared_ptr &) --> void", pybind11::arg("")); - // foo_cr(const bool &) file:T02.function.hpp line:74 + // foo_cr(const bool &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const bool &)) &foo_cr, "C++: foo_cr(const bool &) --> void", pybind11::arg("")); - // foo_cr(const int &) file:T02.function.hpp line:77 + // foo_cr(const int &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const int &)) &foo_cr, "C++: foo_cr(const int &) --> void", pybind11::arg("")); - // foo_cr(const long &) file:T02.function.hpp line:80 + // foo_cr(const long &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const long &)) &foo_cr, "C++: foo_cr(const long &) --> void", pybind11::arg("")); - // foo_cr(const float &) file:T02.function.hpp line:83 + // foo_cr(const float &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const float &)) &foo_cr, "C++: foo_cr(const float &) --> void", pybind11::arg("")); - // foo_cr(const double &) file:T02.function.hpp line:86 + // foo_cr(const double &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const double &)) &foo_cr, "C++: foo_cr(const double &) --> void", pybind11::arg("")); - // foo_cr(const class A &) file:T02.function.hpp line:89 + // foo_cr(const class A &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const class A &)) &foo_cr, "C++: foo_cr(const class A &) --> void", pybind11::arg("")); - // foo_cr(const class std::shared_ptr &) file:T02.function.hpp line:92 + // foo_cr(const class std::shared_ptr &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const class std::shared_ptr &)) &foo_cr, "C++: foo_cr(const class std::shared_ptr &) --> void", pybind11::arg("")); - // foo_cr(const class std::shared_ptr &) file:T02.function.hpp line:95 + // foo_cr(const class std::shared_ptr &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const class std::shared_ptr &)) &foo_cr, "C++: foo_cr(const class std::shared_ptr &) --> void", pybind11::arg("")); - // foo_cr(const struct std::pair &) file:T02.function.hpp line:98 + // foo_cr(const struct std::pair &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const struct std::pair &)) &foo_cr, "C++: foo_cr(const struct std::pair &) --> void", pybind11::arg("")); - // foo_cr(const class std::tuple &) file:T02.function.hpp line:101 + // foo_cr(const class std::tuple &) file:T02.function.hpp line: M("").def("foo_cr", (void (*)(const class std::tuple &)) &foo_cr, "C++: foo_cr(const class std::tuple &) --> void", pybind11::arg("")); - // foo_p(bool *) file:T02.function.hpp line:105 + // foo_p(bool *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(bool *)) &foo_p, "C++: foo_p(bool *) --> void", pybind11::arg("")); - // foo_p(int *) file:T02.function.hpp line:108 + // foo_p(int *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(int *)) &foo_p, "C++: foo_p(int *) --> void", pybind11::arg("")); - // foo_p(long *) file:T02.function.hpp line:111 + // foo_p(long *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(long *)) &foo_p, "C++: foo_p(long *) --> void", pybind11::arg("")); - // foo_p(float *) file:T02.function.hpp line:114 + // foo_p(float *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(float *)) &foo_p, "C++: foo_p(float *) --> void", pybind11::arg("")); - // foo_p(double *) file:T02.function.hpp line:117 + // foo_p(double *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(double *)) &foo_p, "C++: foo_p(double *) --> void", pybind11::arg("")); - // foo_p(class A *) file:T02.function.hpp line:120 + // foo_p(class A *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(class A *)) &foo_p, "C++: foo_p(class A *) --> void", pybind11::arg("")); - // foo_p(class std::shared_ptr *) file:T02.function.hpp line:123 + // foo_p(class std::shared_ptr *) file:T02.function.hpp line: M("").def("foo_p", (void (*)(class std::shared_ptr *)) &foo_p, "C++: foo_p(class std::shared_ptr *) --> void", pybind11::arg("")); - // foo_f1(const class std::function &) file:T02.function.hpp line:144 + // foo_f1(const class std::function &) file:T02.function.hpp line: M("").def("foo_f1", (void (*)(const class std::function &)) &foo_f1, "C++: foo_f1(const class std::function &) --> void", pybind11::arg("f")); - // foo_f2(const class std::function &) file:T02.function.hpp line:147 + // foo_f2(const class std::function &) file:T02.function.hpp line: M("").def("foo_f2", (void (*)(const class std::function &)) &foo_f2, "C++: foo_f2(const class std::function &) --> void", pybind11::arg("f")); - // foo_f3(const class std::function &) file:T02.function.hpp line:150 + // foo_f3(const class std::function &) file:T02.function.hpp line: M("").def("foo_f3", (void (*)(const class std::function &)) &foo_f3, "C++: foo_f3(const class std::function &) --> void", pybind11::arg("f")); - // foo_f5(void (&)(void)) file:T02.function.hpp line:157 + // foo_f5(void (&)(void)) file:T02.function.hpp line: M("").def("foo_f5", (void (*)(void (&)(void))) &foo_f5, "C++: foo_f5(void (&)(void)) --> void", pybind11::arg("")); - // foo_f7(void (&)(void)) file:T02.function.hpp line:160 + // foo_f7(void (&)(void)) file:T02.function.hpp line: M("").def("foo_f7", (void (*)(void (&)(void))) &foo_f7, "C++: foo_f7(void (&)(void)) --> void", pybind11::arg("")); - // foo_f8(void (&)(void)) file:T02.function.hpp line:164 + // foo_f8(void (&)(void)) file:T02.function.hpp line: M("").def("foo_f8", (void (*)(void (&)(void))) &foo_f8, "C++: foo_f8(void (&)(void)) --> void", pybind11::arg("f")); } diff --git a/test/T05.default.ref.cpp b/test/T05.default.ref.cpp index baebcaa7..c45df01e 100644 --- a/test/T05.default.ref.cpp +++ b/test/T05.default.ref.cpp @@ -19,7 +19,7 @@ void bind_T05_default(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(int, int, int &, float, const double &, void *, int) file:T05.default.hpp line:17 + // foo(int, int, int &, float, const double &, void *, int) file:T05.default.hpp line: M("").def("foo", [](int const & a0) -> double { return foo(a0); }, "", pybind11::arg("a")); M("").def("foo", [](int const & a0, int const & a1) -> double { return foo(a0, a1); }, "", pybind11::arg("a"), pybind11::arg("i1")); M("").def("foo", [](int const & a0, int const & a1, int & a2) -> double { return foo(a0, a1, a2); }, "", pybind11::arg("a"), pybind11::arg("i1"), pybind11::arg("i2")); @@ -28,12 +28,12 @@ void bind_T05_default(std::function< pybind11::module &(std::string const &names M("").def("foo", [](int const & a0, int const & a1, int & a2, float const & a3, const double & a4, void * a5) -> double { return foo(a0, a1, a2, a3, a4, a5); }, "", pybind11::arg("a"), pybind11::arg("i1"), pybind11::arg("i2"), pybind11::arg("f"), pybind11::arg("d"), pybind11::arg("p")); M("").def("foo", (double (*)(int, int, int &, float, const double &, void *, int)) &foo, "C++: foo(int, int, int &, float, const double &, void *, int) --> double", pybind11::arg("a"), pybind11::arg("i1"), pybind11::arg("i2"), pybind11::arg("f"), pybind11::arg("d"), pybind11::arg("p"), pybind11::arg("q")); - { // A file:T05.default.hpp line:22 + { // A file:T05.default.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); cl.def( pybind11::init( [](A const &o){ return new A(o); } ) ); } - { // B file:T05.default.hpp line:28 + { // B file:T05.default.hpp line: pybind11::class_> cl(M(""), "B", ""); cl.def( pybind11::init( [](){ return new B(); } ), "doc" ); cl.def( pybind11::init( [](const int & a0){ return new B(a0); } ), "doc" , pybind11::arg("a")); @@ -60,10 +60,10 @@ void bind_T05_default(std::function< pybind11::module &(std::string const &names cl.def_static("foo_static", [](int const & a0, float const & a1) -> double { return B::foo_static(a0, a1); }, "", pybind11::arg("i"), pybind11::arg("f")); cl.def_static("foo_static", (double (*)(int, float, double)) &B::foo_static, "C++: B::foo_static(int, float, double) --> double", pybind11::arg("i"), pybind11::arg("f"), pybind11::arg("d")); } - // foo_f0(void (void), int, float) file:T05.default.hpp line:42 + // foo_f0(void (void), int, float) file:T05.default.hpp line: M("").def("foo_f0", (void (*)(void (void), int, float)) &foo_f0, "C++: foo_f0(void (void), int, float) --> void", pybind11::arg("f"), pybind11::arg("a"), pybind11::arg("b")); - // foo_f1(void (&)(void), int, float) file:T05.default.hpp line:45 + // foo_f1(void (&)(void), int, float) file:T05.default.hpp line: M("").def("foo_f1", (void (*)(void (&)(void), int, float)) &foo_f1, "C++: foo_f1(void (&)(void), int, float) --> void", pybind11::arg("f"), pybind11::arg("a"), pybind11::arg("b")); } diff --git a/test/T07.class.match_args.ref.cpp b/test/T07.class.match_args.ref.cpp index 7899bcd2..868a4b3c 100644 --- a/test/T07.class.match_args.ref.cpp +++ b/test/T07.class.match_args.ref.cpp @@ -15,7 +15,7 @@ void bind_T07_class_match_args(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // MatchArgs file:T07.class.match_args.hpp line:14 + { // MatchArgs file:T07.class.match_args.hpp line: pybind11::class_> cl(M(""), "MatchArgs", ""); cl.def( pybind11::init( [](){ return new MatchArgs(); } ) ); cl.def( pybind11::init( [](MatchArgs const &o){ return new MatchArgs(o); } ) ); diff --git a/test/T07.class.ref.cpp b/test/T07.class.ref.cpp index 3e8d23ee..4e722aa6 100644 --- a/test/T07.class.ref.cpp +++ b/test/T07.class.ref.cpp @@ -22,7 +22,7 @@ void bind_T07_class(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Integral file:T07.class.hpp line:16 + { // Integral file:T07.class.hpp line: pybind11::class_> cl(M(""), "Integral", ""); cl.def( pybind11::init( [](Integral const &o){ return new Integral(o); } ) ); cl.def( pybind11::init( [](){ return new Integral(); } ) ); @@ -32,28 +32,28 @@ void bind_T07_class(std::function< pybind11::module &(std::string const &namespa cl.def_readwrite("ul", &Integral::ul); cl.def("assign", (struct Integral & (Integral::*)(const struct Integral &)) &Integral::operator=, "C++: Integral::operator=(const struct Integral &) --> struct Integral &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Floating_point file:T07.class.hpp line:24 + { // Floating_point file:T07.class.hpp line: pybind11::class_> cl(M(""), "Floating_point", ""); cl.def( pybind11::init( [](){ return new Floating_point(); } ) ); cl.def_readwrite("f", &Floating_point::f); cl.def_readwrite("d", &Floating_point::d); cl.def_readwrite("ld", &Floating_point::ld); } - { // Arrays file:T07.class.hpp line:31 + { // Arrays file:T07.class.hpp line: pybind11::class_> cl(M(""), "Arrays", ""); cl.def( pybind11::init( [](){ return new Arrays(); } ) ); } - { // Pointers_and_References file:T07.class.hpp line:39 + { // Pointers_and_References file:T07.class.hpp line: pybind11::class_> cl(M(""), "Pointers_and_References", ""); } - { // Consts file:T07.class.hpp line:50 + { // Consts file:T07.class.hpp line: pybind11::class_> cl(M(""), "Consts", ""); cl.def( pybind11::init( [](){ return new Consts(); } ) ); cl.def( pybind11::init( [](Consts const &o){ return new Consts(o); } ) ); cl.def_readonly("public_Integral", &Consts::public_Integral); cl.def_readonly("public_int", &Consts::public_int); } - { // Enums file:T07.class.hpp line:68 + { // Enums file:T07.class.hpp line: pybind11::class_> cl(M(""), "Enums", ""); cl.def( pybind11::init( [](){ return new Enums(); } ) ); @@ -69,14 +69,14 @@ void bind_T07_class(std::function< pybind11::module &(std::string const &namespa pybind11::enum_(cl, "E3", ""); } - { // Access file:T07.class.hpp line:83 + { // Access file:T07.class.hpp line: pybind11::class_> cl(M(""), "Access", ""); cl.def( pybind11::init( [](){ return new Access(); } ) ); cl.def_readwrite("i", &Access::i); cl.def("foo_public", (void (Access::*)()) &Access::foo_public, "C++: Access::foo_public() --> void"); cl.def_static("foo", (float (*)(double)) &Access::foo, "C++: Access::foo(double) --> float", pybind11::arg("")); } - { // ConstOverload file:T07.class.hpp line:103 + { // ConstOverload file:T07.class.hpp line: pybind11::class_> cl(M(""), "ConstOverload", ""); cl.def( pybind11::init( [](){ return new ConstOverload(); } ) ); cl.def("foo", (void (ConstOverload::*)(int)) &ConstOverload::foo, "C++: ConstOverload::foo(int) --> void", pybind11::arg("")); diff --git a/test/T08.constructor.ref.cpp b/test/T08.constructor.ref.cpp index 3640de8d..1bfb7d15 100644 --- a/test/T08.constructor.ref.cpp +++ b/test/T08.constructor.ref.cpp @@ -22,36 +22,36 @@ void bind_T08_constructor(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // BaseA file:T08.constructor.hpp line:16 + { // BaseA file:T08.constructor.hpp line: pybind11::class_> cl(M(""), "BaseA", ""); cl.def( pybind11::init( [](){ return new BaseA(); } ) ); } - { // DerivedA file:T08.constructor.hpp line:19 + { // DerivedA file:T08.constructor.hpp line: pybind11::class_, BaseA> cl(M(""), "DerivedA", ""); cl.def( pybind11::init( [](){ return new DerivedA(); } ) ); } - { // BaseB file:T08.constructor.hpp line:24 + { // BaseB file:T08.constructor.hpp line: pybind11::class_> cl(M(""), "BaseB", ""); cl.def( pybind11::init(), pybind11::arg("") ); } - { // DerivedB file:T08.constructor.hpp line:29 + { // DerivedB file:T08.constructor.hpp line: pybind11::class_, BaseB> cl(M(""), "DerivedB", ""); } - { // BaseC file:T08.constructor.hpp line:34 + { // BaseC file:T08.constructor.hpp line: pybind11::class_> cl(M(""), "BaseC", ""); cl.def( pybind11::init(), pybind11::arg("") ); } - { // DerivedC file:T08.constructor.hpp line:42 + { // DerivedC file:T08.constructor.hpp line: pybind11::class_, BaseC> cl(M(""), "DerivedC", ""); } - { // BaseD file:T08.constructor.hpp line:47 + { // BaseD file:T08.constructor.hpp line: pybind11::class_> cl(M(""), "BaseD", ""); cl.def( pybind11::init(), pybind11::arg("") ); } - { // DerivedD file:T08.constructor.hpp line:53 + { // DerivedD file:T08.constructor.hpp line: pybind11::class_, BaseD> cl(M(""), "DerivedD", ""); } } diff --git a/test/T09.overload.ref.cpp b/test/T09.overload.ref.cpp index a858a9fb..715855fe 100644 --- a/test/T09.overload.ref.cpp +++ b/test/T09.overload.ref.cpp @@ -16,7 +16,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// A2 file:T09.overload.hpp line:20 +// A2 file:T09.overload.hpp line: struct PyCallBack_A2 : public A2 { using A2::A2; @@ -35,7 +35,7 @@ struct PyCallBack_A2 : public A2 { } }; -// A3 file:T09.overload.hpp line:27 +// A3 file:T09.overload.hpp line: struct PyCallBack_A3 : public A3 { using A3::A3; @@ -54,7 +54,7 @@ struct PyCallBack_A3 : public A3 { } }; -// A4 file:T09.overload.hpp line:33 +// A4 file:T09.overload.hpp line: struct PyCallBack_A4 : public A4 { using A4::A4; @@ -75,13 +75,13 @@ struct PyCallBack_A4 : public A4 { void bind_T09_overload(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // A1 file:T09.overload.hpp line:15 + { // A1 file:T09.overload.hpp line: pybind11::class_> cl(M(""), "A1", ""); cl.def( pybind11::init( [](){ return new A1(); } ), "doc" ); cl.def( pybind11::init(), pybind11::arg("a") ); } - { // A2 file:T09.overload.hpp line:20 + { // A2 file:T09.overload.hpp line: pybind11::class_, PyCallBack_A2> cl(M(""), "A2", ""); cl.def( pybind11::init( [](){ return new A2(); }, [](){ return new PyCallBack_A2(); } ), "doc"); cl.def( pybind11::init(), pybind11::arg("a") ); @@ -89,7 +89,7 @@ void bind_T09_overload(std::function< pybind11::module &(std::string const &name cl.def("f", (void (A2::*)()) &A2::f, "C++: A2::f() --> void"); cl.def("assign", (struct A2 & (A2::*)(const struct A2 &)) &A2::operator=, "C++: A2::operator=(const struct A2 &) --> struct A2 &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // A3 file:T09.overload.hpp line:27 + { // A3 file:T09.overload.hpp line: pybind11::class_, PyCallBack_A3> cl(M(""), "A3", ""); cl.def( pybind11::init( [](){ return new PyCallBack_A3(); } ), "doc"); cl.def( pybind11::init(), pybind11::arg("a") ); @@ -97,7 +97,7 @@ void bind_T09_overload(std::function< pybind11::module &(std::string const &name cl.def("f", (void (A3::*)()) &A3::f, "C++: A3::f() --> void"); cl.def("assign", (struct A3 & (A3::*)(const struct A3 &)) &A3::operator=, "C++: A3::operator=(const struct A3 &) --> struct A3 &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // A4 file:T09.overload.hpp line:33 + { // A4 file:T09.overload.hpp line: pybind11::class_, PyCallBack_A4> cl(M(""), "A4", ""); cl.def( pybind11::init( [](){ return new PyCallBack_A4(); } ), "doc"); cl.def( pybind11::init(), pybind11::arg("a") ); diff --git a/test/T10.inheritance.ref.cpp b/test/T10.inheritance.ref.cpp index 9fcf530b..8a9ae8ed 100644 --- a/test/T10.inheritance.ref.cpp +++ b/test/T10.inheritance.ref.cpp @@ -19,7 +19,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// Base file:T10.inheritance.hpp line:19 +// Base file:T10.inheritance.hpp line: struct PyCallBack_Base : public Base { using Base::Base; @@ -64,7 +64,7 @@ struct PyCallBack_Base : public Base { } }; -// Derived file:T10.inheritance.hpp line:34 +// Derived file:T10.inheritance.hpp line: struct PyCallBack_Derived : public Derived { using Derived::Derived; @@ -109,7 +109,7 @@ struct PyCallBack_Derived : public Derived { } }; -// Delete file:T10.inheritance.hpp line:42 +// Delete file:T10.inheritance.hpp line: struct PyCallBack_Delete : public Delete { using Delete::Delete; @@ -154,7 +154,7 @@ struct PyCallBack_Delete : public Delete { } }; -// X file:T10.inheritance.hpp line:61 +// X file:T10.inheritance.hpp line: struct PyCallBack_X : public X { using X::X; @@ -188,7 +188,7 @@ struct PyCallBack_X : public X { void bind_T10_inheritance(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Base file:T10.inheritance.hpp line:19 + { // Base file:T10.inheritance.hpp line: pybind11::class_, PyCallBack_Base> cl(M(""), "Base", ""); cl.def( pybind11::init( [](){ return new Base(); }, [](){ return new PyCallBack_Base(); } ) ); cl.def("foo", (void (Base::*)()) &Base::foo, "C++: Base::foo() --> void"); @@ -197,35 +197,35 @@ void bind_T10_inheritance(std::function< pybind11::module &(std::string const &n cl.def("f_v_2", (void (Base::*)()) &Base::f_v_2, "C++: Base::f_v_2() --> void"); cl.def("assign", (class Base & (Base::*)(const class Base &)) &Base::operator=, "C++: Base::operator=(const class Base &) --> class Base &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Derived file:T10.inheritance.hpp line:34 + { // Derived file:T10.inheritance.hpp line: pybind11::class_, PyCallBack_Derived, Base> cl(M(""), "Derived", ""); cl.def( pybind11::init( [](){ return new Derived(); }, [](){ return new PyCallBack_Derived(); } ) ); cl.def_readwrite("data", &Derived::data); cl.def("foo_protected", [](Derived &o) -> void { return o.foo_protected(); }, ""); cl.def("assign", (class Derived & (Derived::*)(const class Derived &)) &Derived::operator=, "C++: Derived::operator=(const class Derived &) --> class Derived &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Delete file:T10.inheritance.hpp line:42 + { // Delete file:T10.inheritance.hpp line: pybind11::class_, PyCallBack_Delete, Base> cl(M(""), "Delete", ""); cl.def("assign", (class Delete & (Delete::*)(const class Delete &)) &Delete::operator=, "C++: Delete::operator=(const class Delete &) --> class Delete &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // A file:T10.inheritance.hpp line:50 + { // A file:T10.inheritance.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); cl.def( pybind11::init( [](A const &o){ return new A(o); } ) ); cl.def("assign", (class A & (A::*)(const class A &)) &A::operator=, "C++: A::operator=(const class A &) --> class A &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // B file:T10.inheritance.hpp line:54 + { // B file:T10.inheritance.hpp line: pybind11::class_> cl(M(""), "B", ""); cl.def( pybind11::init( [](B const &o){ return new B(o); } ) ); cl.def("assign", (class B & (B::*)(const class B &)) &B::operator=, "C++: B::operator=(const class B &) --> class B &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // X file:T10.inheritance.hpp line:61 + { // X file:T10.inheritance.hpp line: pybind11::class_, PyCallBack_X, Base> cl(M(""), "X", ""); cl.def( pybind11::init( [](){ return new X(); }, [](){ return new PyCallBack_X(); } ) ); cl.def("f_v", (void (X::*)()) &X::f_v, "C++: X::f_v() --> void"); cl.def("assign", (class X & (X::*)(const class X &)) &X::operator=, "C++: X::operator=(const class X &) --> class X &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Y file:T10.inheritance.hpp line:67 + { // Y file:T10.inheritance.hpp line: pybind11::class_, X> cl(M(""), "Y", ""); cl.def( pybind11::init( [](){ return new Y(); } ) ); cl.def("f_v_2", (void (Y::*)()) &Y::f_v_2, "C++: Y::f_v_2() --> void"); diff --git a/test/T10.virtual_inheritance.ref.cpp b/test/T10.virtual_inheritance.ref.cpp index c3671741..9e7adbe0 100644 --- a/test/T10.virtual_inheritance.ref.cpp +++ b/test/T10.virtual_inheritance.ref.cpp @@ -18,7 +18,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// Animal file:T10.virtual_inheritance.hpp line:20 +// Animal file:T10.virtual_inheritance.hpp line: struct PyCallBack_Animal_1_t : public Animal<1> { using Animal<1>::Animal; @@ -50,7 +50,7 @@ struct PyCallBack_Animal_1_t : public Animal<1> { } }; -// Mammal file:T10.virtual_inheritance.hpp line:34 +// Mammal file:T10.virtual_inheritance.hpp line: struct PyCallBack_Mammal_1_t : public Mammal<1> { using Mammal<1>::Mammal; @@ -95,7 +95,7 @@ struct PyCallBack_Mammal_1_t : public Mammal<1> { } }; -// Dog file:T10.virtual_inheritance.hpp line:40 +// Dog file:T10.virtual_inheritance.hpp line: struct PyCallBack_Dog_1_t : public Dog<1> { using Dog<1>::Dog; @@ -142,7 +142,7 @@ struct PyCallBack_Dog_1_t : public Dog<1> { void bind_T10_virtual_inheritance(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Animal file:T10.virtual_inheritance.hpp line:20 + { // Animal file:T10.virtual_inheritance.hpp line: pybind11::class_, std::shared_ptr>, PyCallBack_Animal_1_t> cl(M(""), "Animal_1_t", ""); cl.def( pybind11::init( [](){ return new PyCallBack_Animal_1_t(); } ) ); cl.def(pybind11::init()); @@ -151,14 +151,14 @@ void bind_T10_virtual_inheritance(std::function< pybind11::module &(std::string cl.def("isDog", (bool (Animal<1>::*)() const) &Animal<1>::isDog, "C++: Animal<1>::isDog() const --> bool"); cl.def("assign", (class Animal<1> & (Animal<1>::*)(const class Animal<1> &)) &Animal<1>::operator=, "C++: Animal<1>::operator=(const class Animal<1> &) --> class Animal<1> &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Mammal file:T10.virtual_inheritance.hpp line:34 + { // Mammal file:T10.virtual_inheritance.hpp line: pybind11::class_, std::shared_ptr>, PyCallBack_Mammal_1_t, Animal<1>> cl(M(""), "Mammal_1_t", ""); cl.def( pybind11::init( [](){ return new PyCallBack_Mammal_1_t(); } ) ); cl.def(pybind11::init()); cl.def("Breathe", (void (Mammal<1>::*)() const) &Mammal<1>::Breathe, "C++: Mammal<1>::Breathe() const --> void"); cl.def("assign", (class Mammal<1> & (Mammal<1>::*)(const class Mammal<1> &)) &Mammal<1>::operator=, "C++: Mammal<1>::operator=(const class Mammal<1> &) --> class Mammal<1> &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // Dog file:T10.virtual_inheritance.hpp line:40 + { // Dog file:T10.virtual_inheritance.hpp line: pybind11::class_, std::shared_ptr>, PyCallBack_Dog_1_t, Mammal<1>> cl(M(""), "Dog_1_t", ""); cl.def( pybind11::init( [](){ return new Dog<1>(); }, [](){ return new PyCallBack_Dog_1_t(); } ) ); cl.def( pybind11::init( [](PyCallBack_Dog_1_t const &o){ return new PyCallBack_Dog_1_t(o); } ) ); @@ -168,10 +168,10 @@ void bind_T10_virtual_inheritance(std::function< pybind11::module &(std::string cl.def("isDog", (bool (Dog<1>::*)() const) &Dog<1>::isDog, "C++: Dog<1>::isDog() const --> bool"); cl.def("assign", (class Dog<1> & (Dog<1>::*)(const class Dog<1> &)) &Dog<1>::operator=, "C++: Dog<1>::operator=(const class Dog<1> &) --> class Dog<1> &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - // isThisAnimalADog(const class std::shared_ptr > &) file:T10.virtual_inheritance.hpp line:54 + // isThisAnimalADog(const class std::shared_ptr > &) file:T10.virtual_inheritance.hpp line: M("").def("isThisAnimalADog", (bool (*)(const class std::shared_ptr > &)) &isThisAnimalADog<1>, "C++: isThisAnimalADog(const class std::shared_ptr > &) --> bool", pybind11::arg("a")); - // initiate(class Dog<1>) file:T10.virtual_inheritance.hpp line:56 + // initiate(class Dog<1>) file:T10.virtual_inheritance.hpp line: M("").def("initiate", (void (*)(class Dog<1>)) &initiate, "C++: initiate(class Dog<1>) --> void", pybind11::arg("p")); } diff --git a/test/T11.override.ref.cpp b/test/T11.override.ref.cpp index f4af7579..c9c659c7 100644 --- a/test/T11.override.ref.cpp +++ b/test/T11.override.ref.cpp @@ -17,7 +17,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// Base file:T11.override.hpp line:21 +// Base file:T11.override.hpp line: struct PyCallBack_Base : public Base { using Base::Base; @@ -90,7 +90,7 @@ struct PyCallBack_Base : public Base { void bind_T11_override(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Base file:T11.override.hpp line:21 + { // Base file:T11.override.hpp line: pybind11::class_, PyCallBack_Base> cl(M(""), "Base", ""); cl.def( pybind11::init( [](){ return new PyCallBack_Base(); } ) ); cl.def(pybind11::init()); diff --git a/test/T12.insertion_operator.ref.cpp b/test/T12.insertion_operator.ref.cpp index aeff5654..ba9dc8fc 100644 --- a/test/T12.insertion_operator.ref.cpp +++ b/test/T12.insertion_operator.ref.cpp @@ -21,7 +21,7 @@ void bind_T12_insertion_operator(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // A file:T12.insertion_operator.hpp line:17 + { // A file:T12.insertion_operator.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); @@ -53,7 +53,7 @@ void bind_T12_insertion_operator(std::function< pybind11::module &(std::string c void bind_T12_insertion_operator_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::T file:T12.insertion_operator.hpp line:23 + { // aaaa::T file:T12.insertion_operator.hpp line: pybind11::class_> cl(M("aaaa"), "T", ""); cl.def( pybind11::init( [](){ return new aaaa::T(); } ) ); cl.def( pybind11::init( [](aaaa::T const &o){ return new aaaa::T(o); } ) ); @@ -86,7 +86,7 @@ void bind_T12_insertion_operator_1(std::function< pybind11::module &(std::string void bind_T12_insertion_operator_2(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // A1 file:T12.insertion_operator.hpp line:32 + { // A1 file:T12.insertion_operator.hpp line: pybind11::class_> cl(M(""), "A1", ""); cl.def( pybind11::init( [](){ return new A1(); } ) ); cl.def_readwrite("a", &A1::a); @@ -121,14 +121,14 @@ void bind_T12_insertion_operator_2(std::function< pybind11::module &(std::string void bind_T12_insertion_operator_3(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbbb::B file:T12.insertion_operator.hpp line:46 + { // bbbb::B file:T12.insertion_operator.hpp line: pybind11::class_> cl(M("bbbb"), "B", ""); cl.def( pybind11::init( [](){ return new bbbb::B(); } ) ); cl.def( pybind11::init( [](bbbb::B const &o){ return new bbbb::B(o); } ) ); cl.def("__str__", [](bbbb::B const &o) -> std::string { std::ostringstream s; using namespace bbbb::cccc; s << o; return s.str(); } ); } - { // bbbb::B2 file:T12.insertion_operator.hpp line:54 + { // bbbb::B2 file:T12.insertion_operator.hpp line: pybind11::class_> cl(M("bbbb"), "B2", ""); cl.def( pybind11::init( [](){ return new bbbb::B2(); } ) ); @@ -160,7 +160,7 @@ void bind_T12_insertion_operator_3(std::function< pybind11::module &(std::string void bind_T12_insertion_operator_4(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbbb::cccc::C file:T12.insertion_operator.hpp line:63 + { // bbbb::cccc::C file:T12.insertion_operator.hpp line: pybind11::class_> cl(M("bbbb::cccc"), "C", ""); cl.def( pybind11::init( [](){ return new bbbb::cccc::C(); } ) ); diff --git a/test/T12.operator.ref.cpp b/test/T12.operator.ref.cpp index 2a5e112c..97c2446b 100644 --- a/test/T12.operator.ref.cpp +++ b/test/T12.operator.ref.cpp @@ -15,7 +15,7 @@ void bind_T12_operator(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // T file:T12.operator.hpp line:15 + { // T file:T12.operator.hpp line: pybind11::class_> cl(M(""), "T", ""); cl.def( pybind11::init( [](){ return new T(); } ) ); cl.def("__invert__", (struct T & (T::*)()) &T::operator~, "C++: T::operator~() --> struct T &", pybind11::return_value_policy::automatic); diff --git a/test/T15.copy.ref.cpp b/test/T15.copy.ref.cpp index e8839c39..7dca1ce4 100644 --- a/test/T15.copy.ref.cpp +++ b/test/T15.copy.ref.cpp @@ -21,31 +21,31 @@ void bind_T15_copy(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // POD1 file:T15.copy.hpp line:16 + { // POD1 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD1", ""); cl.def( pybind11::init( [](){ return new POD1(); } ) ); } - { // POD2 file:T15.copy.hpp line:20 + { // POD2 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD2", ""); cl.def( pybind11::init( [](POD2 const &o){ return new POD2(o); } ) ); } - { // POD3 file:T15.copy.hpp line:26 + { // POD3 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD3", ""); cl.def( pybind11::init( [](POD3 const &o){ return new POD3(o); } ) ); } - { // POD4 file:T15.copy.hpp line:31 + { // POD4 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD4", ""); cl.def( pybind11::init( [](POD4 const &o){ return new POD4(o); } ) ); cl.def_readwrite("a", &POD4::a); } - { // POD5 file:T15.copy.hpp line:38 + { // POD5 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD5", ""); } - { // POD6 file:T15.copy.hpp line:43 + { // POD6 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "POD6", ""); cl.def_readwrite("a", &POD6::a); } - { // Data1 file:T15.copy.hpp line:50 + { // Data1 file:T15.copy.hpp line: pybind11::class_> cl(M(""), "Data1", ""); cl.def( pybind11::init( [](Data1 const &o){ return new Data1(o); } ) ); } diff --git a/test/T15.inner_class.fwd.ref.cpp b/test/T15.inner_class.fwd.ref.cpp index cff5e7e8..be18616d 100644 --- a/test/T15.inner_class.fwd.ref.cpp +++ b/test/T15.inner_class.fwd.ref.cpp @@ -17,26 +17,26 @@ void bind_T15_inner_class_fwd(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // outer file:T15.inner_class.fwd.hpp line:10 + { // outer file:T15.inner_class.fwd.hpp line: pybind11::class_> cl(M(""), "outer", "binder/test/T15.inner_class.fwd.hpp\n \n\n Binder self-test file. Tests for bindings of forward declared inner functions."); cl.def( pybind11::init( [](){ return new outer(); } ) ); cl.def("f", (void (outer::*)(struct outer::inner *, struct outer::inner2 *, struct outer::inner3 *)) &outer::f, "C++: outer::f(struct outer::inner *, struct outer::inner2 *, struct outer::inner3 *) --> void", pybind11::arg("i"), pybind11::arg("i2"), pybind11::arg("i3")); - { // outer::inner file:T15.inner_class.fwd.hpp line:13 + { // outer::inner file:T15.inner_class.fwd.hpp line: auto & enclosing_class = cl; pybind11::class_> cl(enclosing_class, "inner", ""); cl.def( pybind11::init( [](){ return new outer::inner(); } ) ); cl.def_readwrite("a", &outer::inner::a); } - { // outer::inner2 file:T15.inner_class.fwd.hpp line:24 + { // outer::inner2 file:T15.inner_class.fwd.hpp line: auto & enclosing_class = cl; pybind11::class_> cl(enclosing_class, "inner2", ""); cl.def( pybind11::init( [](){ return new outer::inner2(); } ) ); cl.def_readwrite("b", &outer::inner2::b); } - { // outer::inner3 file:T15.inner_class.fwd.hpp line:30 + { // outer::inner3 file:T15.inner_class.fwd.hpp line: auto & enclosing_class = cl; pybind11::class_> cl(enclosing_class, "inner3", ""); cl.def( pybind11::init( [](){ return new outer::inner3(); } ) ); diff --git a/test/T15.inner_class.ref.cpp b/test/T15.inner_class.ref.cpp index 43ec4ae2..2ac72741 100644 --- a/test/T15.inner_class.ref.cpp +++ b/test/T15.inner_class.ref.cpp @@ -15,7 +15,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// Base file:T15.inner_class.hpp line:16 +// Base file:T15.inner_class.hpp line: struct PyCallBack_Base : public Base { using Base::Base; @@ -36,18 +36,18 @@ struct PyCallBack_Base : public Base { void bind_T15_inner_class(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Base file:T15.inner_class.hpp line:16 + { // Base file:T15.inner_class.hpp line: pybind11::class_, PyCallBack_Base> cl(M(""), "Base", ""); cl.def( pybind11::init( [](){ return new Base(); }, [](){ return new PyCallBack_Base(); } ) ); cl.def("foo", (void (Base::*)()) &Base::foo, "C++: Base::foo() --> void"); cl.def("assign", (struct Base & (Base::*)(const struct Base &)) &Base::operator=, "C++: Base::operator=(const struct Base &) --> struct Base &", pybind11::return_value_policy::automatic, pybind11::arg("")); - { // Base::(anonymous) file:T15.inner_class.hpp line:21 + { // Base::(anonymous) file:T15.inner_class.hpp line: cl.def_readwrite("a", &Base::a); cl.def_readwrite("b", &Base::b); } - { // Base::InnerBase file:T15.inner_class.hpp line:27 + { // Base::InnerBase file:T15.inner_class.hpp line: auto & enclosing_class = cl; pybind11::class_> cl(enclosing_class, "InnerBase", ""); cl.def( pybind11::init( [](){ return new Base::InnerBase(); } ) ); @@ -56,14 +56,14 @@ void bind_T15_inner_class(std::function< pybind11::module &(std::string const &n cl.def("foo_i", (void (Base::InnerBase::*)()) &Base::InnerBase::foo_i, "C++: Base::InnerBase::foo_i() --> void"); } - { // Base::InnerTemplate file:T15.inner_class.hpp line:36 + { // Base::InnerTemplate file:T15.inner_class.hpp line: auto & enclosing_class = cl; pybind11::class_, std::shared_ptr>> cl(enclosing_class, "InnerTemplate_int_t", ""); cl.def( pybind11::init( [](){ return new Base::InnerTemplate(); } ) ); cl.def_readwrite("value", &Base::InnerTemplate::value); } - { // Base::InnerTemplate file:T15.inner_class.hpp line:36 + { // Base::InnerTemplate file:T15.inner_class.hpp line: auto & enclosing_class = cl; pybind11::class_, std::shared_ptr>> cl(enclosing_class, "InnerTemplate_float_t", ""); cl.def( pybind11::init( [](){ return new Base::InnerTemplate(); } ) ); @@ -90,7 +90,7 @@ void bind_T15_inner_class(std::function< pybind11::module &(std::string const &n PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// n1::A file:T15.inner_class.hpp line:43 +// n1::A file:T15.inner_class.hpp line: struct PyCallBack_n1_A : public n1::A { using n1::A::A; @@ -111,7 +111,7 @@ struct PyCallBack_n1_A : public n1::A { void bind_T15_inner_class_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // n1::A file:T15.inner_class.hpp line:43 + { // n1::A file:T15.inner_class.hpp line: pybind11::class_, PyCallBack_n1_A, Base> cl(M("n1"), "A", ""); cl.def( pybind11::init( [](){ return new n1::A(); }, [](){ return new PyCallBack_n1_A(); } ) ); cl.def("assign", (struct n1::A & (n1::A::*)(const struct n1::A &)) &n1::A::operator=, "C++: n1::A::operator=(const struct n1::A &) --> struct n1::A &", pybind11::return_value_policy::automatic, pybind11::arg("")); @@ -135,7 +135,7 @@ void bind_T15_inner_class_1(std::function< pybind11::module &(std::string const PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// n1::n2::A file:T15.inner_class.hpp line:48 +// n1::n2::A file:T15.inner_class.hpp line: struct PyCallBack_n1_n2_A : public n1::n2::A { using n1::n2::A::A; @@ -156,7 +156,7 @@ struct PyCallBack_n1_n2_A : public n1::n2::A { void bind_T15_inner_class_2(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // n1::n2::A file:T15.inner_class.hpp line:48 + { // n1::n2::A file:T15.inner_class.hpp line: pybind11::class_, PyCallBack_n1_n2_A, n1::A> cl(M("n1::n2"), "A", ""); cl.def( pybind11::init( [](){ return new n1::n2::A(); }, [](){ return new PyCallBack_n1_n2_A(); } ) ); cl.def("assign", (struct n1::n2::A & (n1::n2::A::*)(const struct n1::n2::A &)) &n1::n2::A::operator=, "C++: n1::n2::A::operator=(const struct n1::n2::A &) --> struct n1::n2::A &", pybind11::return_value_policy::automatic, pybind11::arg("")); @@ -181,7 +181,7 @@ void bind_T15_inner_class_2(std::function< pybind11::module &(std::string const void bind_T15_inner_class_3(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // instantiate_templates(struct Base::InnerTemplate, struct Base::InnerTemplate) file:T15.inner_class.hpp line:55 + // instantiate_templates(struct Base::InnerTemplate, struct Base::InnerTemplate) file:T15.inner_class.hpp line: M("").def("instantiate_templates", (void (*)(struct Base::InnerTemplate, struct Base::InnerTemplate)) &instantiate_templates, "C++: instantiate_templates(struct Base::InnerTemplate, struct Base::InnerTemplate) --> void", pybind11::arg(""), pybind11::arg("")); } diff --git a/test/T17.anonymous.ref.cpp b/test/T17.anonymous.ref.cpp index 1221177b..156d9a74 100644 --- a/test/T17.anonymous.ref.cpp +++ b/test/T17.anonymous.ref.cpp @@ -20,19 +20,19 @@ void bind_T17_anonymous(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo() file:T17.anonymous.hpp line:32 + // foo() file:T17.anonymous.hpp line: M("").def("foo", (void (*)()) &foo, "C++: foo() --> void"); - { // S file:T17.anonymous.hpp line:36 + { // S file:T17.anonymous.hpp line: pybind11::class_> cl(M(""), "S", ""); cl.def( pybind11::init( [](){ return new S(); } ) ); cl.def_readwrite("a", &S::a); - { // S::(anonymous) file:T17.anonymous.hpp line:40 + { // S::(anonymous) file:T17.anonymous.hpp line: cl.def_readwrite("b", &S::b); } - { // S::_D file:T17.anonymous.hpp line:61 + { // S::_D file:T17.anonymous.hpp line: auto & enclosing_class = cl; pybind11::class_> cl(enclosing_class, "_D", ""); cl.def( pybind11::init( [](){ return new S::_D(); } ) ); @@ -40,18 +40,18 @@ void bind_T17_anonymous(std::function< pybind11::module &(std::string const &nam } } - { // _S2 file:T17.anonymous.hpp line:67 + { // _S2 file:T17.anonymous.hpp line: pybind11::class_<_S2, std::shared_ptr<_S2>> cl(M(""), "_S2", ""); cl.def( pybind11::init( [](){ return new _S2(); } ) ); cl.def_readwrite("a", &_S2::a); } - { // Anonymous file:T17.anonymous.hpp line:72 + { // Anonymous file:T17.anonymous.hpp line: pybind11::class_> cl(M(""), "Anonymous", ""); cl.def( pybind11::init( [](){ return new Anonymous(); } ) ); - { // Anonymous::(anonymous) file:T17.anonymous.hpp line:74 + { // Anonymous::(anonymous) file:T17.anonymous.hpp line: - { // Anonymous::(anonymous union)::(anonymous) file:T17.anonymous.hpp line:76 + { // Anonymous::(anonymous union)::(anonymous) file:T17.anonymous.hpp line: cl.def_readwrite("x", &Anonymous::x); cl.def_readwrite("y", &Anonymous::y); } diff --git a/test/T20.template.ref.cpp b/test/T20.template.ref.cpp index 9d947b6b..87a26ea0 100644 --- a/test/T20.template.ref.cpp +++ b/test/T20.template.ref.cpp @@ -21,52 +21,52 @@ void bind_T20_template(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo() file:T20.template.hpp line:16 + // foo() file:T20.template.hpp line: M("").def("foo", (void (*)()) &foo, "C++: foo() --> void"); - // foo() file:T20.template.hpp line:16 + // foo() file:T20.template.hpp line: M("").def("foo", (void (*)()) &foo, "C++: foo() --> void"); - { // A file:T20.template.hpp line:24 + { // A file:T20.template.hpp line: pybind11::class_, std::shared_ptr>> cl(M(""), "A_int_t", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); cl.def_readwrite("t_value", &A::t_value); cl.def("foo", (void (A::*)(int &)) &A::foo, "C++: A::foo(int &) --> void", pybind11::arg("")); } - // fi_instantiated_by_use_in_function(class A) file:T20.template.hpp line:33 + // fi_instantiated_by_use_in_function(class A) file:T20.template.hpp line: M("").def("fi_instantiated_by_use_in_function", (void (*)(class A)) &fi_instantiated_by_use_in_function, "C++: fi_instantiated_by_use_in_function(class A) --> void", pybind11::arg("")); - // fi(class A &) file:T20.template.hpp line:36 + // fi(class A &) file:T20.template.hpp line: M("").def("fi", (void (*)(class A &)) &fi, "C++: fi(class A &) --> void", pybind11::arg("")); - // fi(class A *) file:T20.template.hpp line:39 + // fi(class A *) file:T20.template.hpp line: M("").def("fi", (void (*)(class A *)) &fi, "C++: fi(class A *) --> void", pybind11::arg("")); - // add(int) file:T20.template.hpp line:53 + // add(int) file:T20.template.hpp line: M("").def("add", (int (*)(int)) &add, "C++: add(int) --> int", pybind11::arg("v")); - // add(int, int, int) file:T20.template.hpp line:58 + // add(int, int, int) file:T20.template.hpp line: M("").def("add", (int (*)(int, int, int)) &add, "C++: add(int, int, int) --> int", pybind11::arg("first"), pybind11::arg("as"), pybind11::arg("as")); - // add(int, int) file:T20.template.hpp line:58 + // add(int, int) file:T20.template.hpp line: M("").def("add", (int (*)(int, int)) &add, "C++: add(int, int) --> int", pybind11::arg("first"), pybind11::arg("as")); - // foo() file:T20.template.hpp line:63 + // foo() file:T20.template.hpp line: M("").def("foo", (void (*)()) &foo, "C++: foo() --> void"); - // foo(int) file:T20.template.hpp line:63 + // foo(int) file:T20.template.hpp line: M("").def("foo", (void (*)(int)) &foo, "C++: foo(int) --> void", pybind11::arg("as")); - // foo(int, int) file:T20.template.hpp line:63 + // foo(int, int) file:T20.template.hpp line: M("").def("foo", (void (*)(int, int)) &foo, "C++: foo(int, int) --> void", pybind11::arg("as"), pybind11::arg("as")); - // foo(int, int, int) file:T20.template.hpp line:63 + // foo(int, int, int) file:T20.template.hpp line: M("").def("foo", (void (*)(int, int, int)) &foo, "C++: foo(int, int, int) --> void", pybind11::arg("as"), pybind11::arg("as"), pybind11::arg("as")); - // instantiate() file:T20.template.hpp line:68 + // instantiate() file:T20.template.hpp line: M("").def("instantiate", (void (*)()) &instantiate, "C++: instantiate() --> void"); - { // TemplateSpecialization file:T20.template.hpp line:84 + { // TemplateSpecialization file:T20.template.hpp line: pybind11::class_, std::shared_ptr>> cl(M(""), "TemplateSpecialization_float_t", ""); cl.def( pybind11::init( [](){ return new TemplateSpecialization(); } ) ); cl.def_readwrite("data", &TemplateSpecialization::data); diff --git a/test/T20.template.variadic.ref.cpp b/test/T20.template.variadic.ref.cpp index b7c8f7c7..849249a0 100644 --- a/test/T20.template.variadic.ref.cpp +++ b/test/T20.template.variadic.ref.cpp @@ -16,7 +16,7 @@ void bind_std_array(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::array file:array line:81 + { // std::array file:array line: pybind11::class_,2>, std::shared_ptr,2>>> cl(M("std"), "array_variadic_template_Array_int_2_2_t", ""); cl.def( pybind11::init( [](){ return new std::array,2>(); } ) ); cl.def("fill", (void (std::array,2>::*)(const struct variadic_template::Array &)) &std::array, 2>::fill, "C++: std::array, 2>::fill(const struct variadic_template::Array &) --> void", pybind11::arg("__u")); @@ -34,7 +34,7 @@ void bind_std_array(std::function< pybind11::module &(std::string const &namespa cl.def("back", (struct variadic_template::Array & (std::array,2>::*)()) &std::array, 2>::back, "C++: std::array, 2>::back() --> struct variadic_template::Array &", pybind11::return_value_policy::automatic); cl.def("data", (struct variadic_template::Array * (std::array,2>::*)()) &std::array, 2>::data, "C++: std::array, 2>::data() --> struct variadic_template::Array *", pybind11::return_value_policy::automatic); } - { // std::array file:array line:81 + { // std::array file:array line: pybind11::class_, std::shared_ptr>> cl(M("std"), "array_int_2_t", ""); cl.def( pybind11::init( [](){ return new std::array(); } ) ); cl.def("fill", (void (std::array::*)(const int &)) &std::array::fill, "C++: std::array::fill(const int &) --> void", pybind11::arg("__u")); @@ -73,7 +73,7 @@ void bind_std_array(std::function< pybind11::module &(std::string const &namespa void bind_T20_template_variadic(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // variadic_template::Array file:T20.template.variadic.hpp line:20 + { // variadic_template::Array file:T20.template.variadic.hpp line: pybind11::class_, std::shared_ptr>, std::array,2>> cl(M("variadic_template"), "Array_int_2_2_t", ""); cl.def( pybind11::init( [](){ return new variadic_template::Array(); } ) ); cl.def("fill", (void (std::array,2>::*)(const struct variadic_template::Array &)) &std::array, 2>::fill, "C++: std::array, 2>::fill(const struct variadic_template::Array &) --> void", pybind11::arg("__u")); @@ -91,7 +91,7 @@ void bind_T20_template_variadic(std::function< pybind11::module &(std::string co cl.def("back", (struct variadic_template::Array & (std::array,2>::*)()) &std::array, 2>::back, "C++: std::array, 2>::back() --> struct variadic_template::Array &", pybind11::return_value_policy::automatic); cl.def("data", (struct variadic_template::Array * (std::array,2>::*)()) &std::array, 2>::data, "C++: std::array, 2>::data() --> struct variadic_template::Array *", pybind11::return_value_policy::automatic); } - { // variadic_template::Array file:T20.template.variadic.hpp line:22 + { // variadic_template::Array file:T20.template.variadic.hpp line: pybind11::class_, std::shared_ptr>, std::array> cl(M("variadic_template"), "Array_int_2_t", ""); cl.def( pybind11::init( [](){ return new variadic_template::Array(); } ) ); cl.def("fill", (void (std::array::*)(const int &)) &std::array::fill, "C++: std::array::fill(const int &) --> void", pybind11::arg("__u")); @@ -109,7 +109,7 @@ void bind_T20_template_variadic(std::function< pybind11::module &(std::string co cl.def("back", (int & (std::array::*)()) &std::array::back, "C++: std::array::back() --> int &", pybind11::return_value_policy::automatic); cl.def("data", (int * (std::array::*)()) &std::array::data, "C++: std::array::data() --> int *", pybind11::return_value_policy::automatic); } - { // variadic_template::st2 file:T20.template.variadic.hpp line:25 + { // variadic_template::st2 file:T20.template.variadic.hpp line: pybind11::class_, variadic_template::Array> cl(M("variadic_template"), "st2", ""); cl.def( pybind11::init( [](){ return new variadic_template::st2(); } ) ); } diff --git a/test/T30.include.ref.cpp b/test/T30.include.ref.cpp index 6007eb1a..033ffbd2 100644 --- a/test/T30.include.ref.cpp +++ b/test/T30.include.ref.cpp @@ -15,7 +15,7 @@ void bind_T30_include_incl_a_include(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::A file:T30.include.incl.a.include line:7 + { // aaaa::A file:T30.include.incl.a.include line: pybind11::class_> cl(M("aaaa"), "A", ""); cl.def( pybind11::init( [](){ return new aaaa::A(); } ) ); } @@ -40,7 +40,7 @@ void bind_T30_include_incl_a_include(std::function< pybind11::module &(std::stri void bind_T30_include_incl_b_include(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbbb::B file:T30.include.incl.b.include line:8 + { // bbbb::B file:T30.include.incl.b.include line: pybind11::class_, std::shared_ptr>> cl(M("bbbb"), "B_aaaa_A_t", ""); cl.def( pybind11::init( [](){ return new bbbb::B(); } ) ); } @@ -65,7 +65,7 @@ void bind_T30_include_incl_b_include(std::function< pybind11::module &(std::stri void bind_T30_include(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class bbbb::B) file:T30.include.hpp line:19 + // foo(class bbbb::B) file:T30.include.hpp line: M("").def("foo", (void (*)(class bbbb::B)) &foo, "C++: foo(class bbbb::B) --> void", pybind11::arg("")); } diff --git a/test/T31.include_for_class.ref.cpp b/test/T31.include_for_class.ref.cpp index 8e901810..e92da95f 100644 --- a/test/T31.include_for_class.ref.cpp +++ b/test/T31.include_for_class.ref.cpp @@ -21,7 +21,7 @@ void bind_T31_include_for_class_incl_a_include(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::A file:T31.include_for_class.incl.a.include line:6 + { // aaaa::A file:T31.include_for_class.incl.a.include line: pybind11::class_> cl(M("aaaa"), "A", ""); cl.def( pybind11::init( [](){ return new aaaa::A(); } ) ); @@ -48,7 +48,7 @@ void bind_T31_include_for_class_incl_a_include(std::function< pybind11::module & void bind_T31_include_for_class_incl_b_include(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbbb::B file:T31.include_for_class.incl.b.include line:6 + { // bbbb::B file:T31.include_for_class.incl.b.include line: pybind11::class_> cl(M("bbbb"), "B", ""); cl.def( pybind11::init( [](){ return new bbbb::B(); } ) ); } diff --git a/test/T32.call_guard.ref.cpp b/test/T32.call_guard.ref.cpp index 9265b41c..74f1b3d7 100644 --- a/test/T32.call_guard.ref.cpp +++ b/test/T32.call_guard.ref.cpp @@ -16,10 +16,10 @@ void bind_T32_call_guard(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // free(int) file:T32.call_guard.hpp line:16 + // free(int) file:T32.call_guard.hpp line: M("").def("free", (void (*)(int)) &free, "C++: free(int) --> void", pybind11::arg(""), pybind11::call_guard()); - { // Methods file:T32.call_guard.hpp line:20 + { // Methods file:T32.call_guard.hpp line: pybind11::class_> cl(M(""), "Methods", ""); cl.def( pybind11::init( [](){ return new Methods(); } ) ); cl.def("foo", (void (Methods::*)(int)) &Methods::foo, "C++: Methods::foo(int) --> void", pybind11::arg(""), pybind11::call_guard()); diff --git a/test/T33.buffer_protocol.ref.cpp b/test/T33.buffer_protocol.ref.cpp index 0691568d..af2cd07a 100644 --- a/test/T33.buffer_protocol.ref.cpp +++ b/test/T33.buffer_protocol.ref.cpp @@ -15,7 +15,7 @@ void bind_T33_buffer_protocol(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // A file:T33.buffer_protocol.hpp line:11 + { // A file:T33.buffer_protocol.hpp line: pybind11::class_> cl(M(""), "A", "", pybind11::buffer_protocol()); cl.def( pybind11::init( [](){ return new A(); } ) ); } diff --git a/test/T40.stl.ref.cpp b/test/T40.stl.ref.cpp index 385aaf2b..d837bfbf 100644 --- a/test/T40.stl.ref.cpp +++ b/test/T40.stl.ref.cpp @@ -19,7 +19,7 @@ void bind_std_stl_vector(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // std::vector file:bits/stl_vector.h line:210 + // std::vector file:bits/stl_vector.h line: binder::vector_binder>(M("std"), "int", "std_allocator_int_t"); } @@ -46,7 +46,7 @@ void bind_std_stl_vector(std::function< pybind11::module &(std::string const &na void bind_T40_stl(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::vector >) file:T40.stl.hpp line:18 + // foo(class std::vector >) file:T40.stl.hpp line: M("").def("foo", (void (*)(class std::vector >)) &foo, "C++: foo(class std::vector >) --> void", pybind11::arg("")); } @@ -75,7 +75,7 @@ void bind_T40_stl(std::function< pybind11::module &(std::string const &namespace void bind_std_T40_stl(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // std::vector file:T40.stl.hpp line:22 + // std::vector file:T40.stl.hpp line: binder::vector_binder>(M("std"), "float", "std_allocator_float_t"); } diff --git a/test/T42.stl.names.map.ref.cpp b/test/T42.stl.names.map.ref.cpp index 421de1f0..2c109662 100644 --- a/test/T42.stl.names.map.ref.cpp +++ b/test/T42.stl.names.map.ref.cpp @@ -20,25 +20,25 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_float_float_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_std_string_std_string_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_float_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const float &, const float &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const float &, const float &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_std_string_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const std::string &, const std::string &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const std::string &, const std::string &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); @@ -78,19 +78,19 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const & void bind_std_functional_hash(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::hash file:bits/functional_hash.h line:164 + { // std::hash file:bits/functional_hash.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_float_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def( pybind11::init( [](std::hash const &o){ return new std::hash(o); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(float) const) &std::hash::operator(), "C++: std::hash::operator()(float) const --> std::size_t", pybind11::arg("__val")); cl.def("assign", (struct std::hash & (std::hash::*)(const struct std::hash &)) &std::hash::operator=, "C++: std::hash::operator=(const struct std::hash &) --> struct std::hash &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::hash file:bits/basic_string.h line:3044 + { // std::hash file:bits/basic_string.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_std_string_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(const std::string &) const) &std::hash::operator(), "C++: std::hash::operator()(const std::string &) const --> std::size_t", pybind11::arg("__s")); } - { // std::map file:bits/stl_map.h line:96 + { // std::map file:bits/stl_map.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "map_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::map(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::map(a0); } ), "doc" , pybind11::arg("__comp")); @@ -112,7 +112,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons cl.def("count", (unsigned long (std::map::*)(const float &) const) &std::map, std::allocator > >::count, "C++: std::map, std::allocator > >::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair >, struct std::_Rb_tree_iterator > > (std::map::*)(const float &)) &std::map, std::allocator > >::equal_range, "C++: std::map, std::allocator > >::equal_range(const float &) --> struct std::pair >, struct std::_Rb_tree_iterator > >", pybind11::arg("__x")); } - { // std::map file:bits/stl_map.h line:96 + { // std::map file:bits/stl_map.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "map_std_string_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::map>>>>(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::map>>>>(a0); } ), "doc" , pybind11::arg("__comp")); @@ -168,7 +168,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons void bind_std_unordered_map(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::unordered_map file:bits/unordered_map.h line:97 + { // std::unordered_map file:bits/unordered_map.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_map_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_map(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_map(a0); } ), "doc" , pybind11::arg("__n")); @@ -202,7 +202,7 @@ void bind_std_unordered_map(std::function< pybind11::module &(std::string const cl.def("rehash", (void (std::unordered_map::*)(unsigned long)) &std::unordered_map, std::equal_to, std::allocator > >::rehash, "C++: std::unordered_map, std::equal_to, std::allocator > >::rehash(unsigned long) --> void", pybind11::arg("__n")); cl.def("reserve", (void (std::unordered_map::*)(unsigned long)) &std::unordered_map, std::equal_to, std::allocator > >::reserve, "C++: std::unordered_map, std::equal_to, std::allocator > >::reserve(unsigned long) --> void", pybind11::arg("__n")); } - { // std::unordered_map file:bits/unordered_map.h line:97 + { // std::unordered_map file:bits/unordered_map.h line: pybind11::class_>>>,std::hash,std::equal_to,std::allocator>>> > >>, std::shared_ptr>>>,std::hash,std::equal_to,std::allocator>>> > >>>> cl(M("std"), "unordered_map_std_string_std_list_std_forward_list_std_deque_std_vector_double_std_hash_std_string_std_equal_to_std_string_std_allocator_std_pair_const_std_string_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_map>>>,std::hash,std::equal_to,std::allocator>>> > >>(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_map>>>,std::hash,std::equal_to,std::allocator>>> > >>(a0); } ), "doc" , pybind11::arg("__n")); @@ -260,7 +260,7 @@ void bind_std_unordered_map(std::function< pybind11::module &(std::string const void bind_std_stl_list(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::list file:bits/stl_list.h line:438 + { // std::list file:bits/stl_list.h line: pybind11::class_>>>, std::shared_ptr>>>>> cl(M("std"), "list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::list>>>(); } ) ); cl.def( pybind11::init >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > &>(), pybind11::arg("__a") ); @@ -323,16 +323,16 @@ void bind_std_stl_list(std::function< pybind11::module &(std::string const &name void bind_T42_stl_names_map(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::map, class std::allocator > >) file:T42.stl.names.map.hpp line:29 + // foo(class std::map, class std::allocator > >) file:T42.stl.names.map.hpp line: M("").def("foo", (void (*)(class std::map, class std::allocator > >)) &foo, "C++: foo(class std::map, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::unordered_map, struct std::equal_to, class std::allocator > >) file:T42.stl.names.map.hpp line:33 + // foo(class std::unordered_map, struct std::equal_to, class std::allocator > >) file:T42.stl.names.map.hpp line: M("").def("foo", (void (*)(class std::unordered_map, struct std::equal_to, class std::allocator > >)) &foo, "C++: foo(class std::unordered_map, struct std::equal_to, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.map.hpp line:37 + // foo(class std::map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.map.hpp line: M("").def("foo", (void (*)(class std::map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); - // foo(class std::unordered_map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.map.hpp line:40 + // foo(class std::unordered_map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.map.hpp line: M("").def("foo", (void (*)(class std::unordered_map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::unordered_map >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); } diff --git a/test/T42.stl.names.multi.ref.cpp b/test/T42.stl.names.multi.ref.cpp index 35c7ef2b..27b2f586 100644 --- a/test/T42.stl.names.multi.ref.cpp +++ b/test/T42.stl.names.multi.ref.cpp @@ -20,25 +20,25 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_float_float_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_std_string_std_string_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_float_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const float &, const float &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const float &, const float &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_std_string_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const std::string &, const std::string &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const std::string &, const std::string &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); @@ -78,19 +78,19 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const & void bind_std_functional_hash(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::hash file:bits/functional_hash.h line:164 + { // std::hash file:bits/functional_hash.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_float_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def( pybind11::init( [](std::hash const &o){ return new std::hash(o); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(float) const) &std::hash::operator(), "C++: std::hash::operator()(float) const --> std::size_t", pybind11::arg("__val")); cl.def("assign", (struct std::hash & (std::hash::*)(const struct std::hash &)) &std::hash::operator=, "C++: std::hash::operator=(const struct std::hash &) --> struct std::hash &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::hash file:bits/basic_string.h line:3044 + { // std::hash file:bits/basic_string.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_std_string_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(const std::string &) const) &std::hash::operator(), "C++: std::hash::operator()(const std::string &) const --> std::size_t", pybind11::arg("__s")); } - { // std::multimap file:bits/stl_multimap.h line:95 + { // std::multimap file:bits/stl_multimap.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "multimap_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::multimap(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multimap(a0); } ), "doc" , pybind11::arg("__comp")); @@ -109,7 +109,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons cl.def("count", (unsigned long (std::multimap::*)(const float &) const) &std::multimap, std::allocator > >::count, "C++: std::multimap, std::allocator > >::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair >, struct std::_Rb_tree_iterator > > (std::multimap::*)(const float &)) &std::multimap, std::allocator > >::equal_range, "C++: std::multimap, std::allocator > >::equal_range(const float &) --> struct std::pair >, struct std::_Rb_tree_iterator > >", pybind11::arg("__x")); } - { // std::multimap file:bits/stl_multimap.h line:95 + { // std::multimap file:bits/stl_multimap.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "multimap_std_string_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::multimap>>>>(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multimap>>>>(a0); } ), "doc" , pybind11::arg("__comp")); @@ -165,7 +165,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons void bind_std_stl_multiset(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::multiset file:bits/stl_multiset.h line:92 + { // std::multiset file:bits/stl_multiset.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "multiset_float_t", ""); cl.def( pybind11::init( [](){ return new std::multiset(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multiset(a0); } ), "doc" , pybind11::arg("__comp")); @@ -185,7 +185,7 @@ void bind_std_stl_multiset(std::function< pybind11::module &(std::string const & cl.def("count", (unsigned long (std::multiset::*)(const float &) const) &std::multiset::count, "C++: std::multiset::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair, struct std::_Rb_tree_const_iterator > (std::multiset::*)(const float &)) &std::multiset::equal_range, "C++: std::multiset::equal_range(const float &) --> struct std::pair, struct std::_Rb_tree_const_iterator >", pybind11::arg("__x")); } - { // std::unordered_multimap file:bits/unordered_map.h line:778 + { // std::unordered_multimap file:bits/unordered_map.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_multimap_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multimap(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multimap(a0); } ), "doc" , pybind11::arg("__n")); @@ -216,7 +216,7 @@ void bind_std_stl_multiset(std::function< pybind11::module &(std::string const & cl.def("rehash", (void (std::unordered_multimap::*)(unsigned long)) &std::unordered_multimap, std::equal_to, std::allocator > >::rehash, "C++: std::unordered_multimap, std::equal_to, std::allocator > >::rehash(unsigned long) --> void", pybind11::arg("__n")); cl.def("reserve", (void (std::unordered_multimap::*)(unsigned long)) &std::unordered_multimap, std::equal_to, std::allocator > >::reserve, "C++: std::unordered_multimap, std::equal_to, std::allocator > >::reserve(unsigned long) --> void", pybind11::arg("__n")); } - { // std::unordered_multimap file:bits/unordered_map.h line:778 + { // std::unordered_multimap file:bits/unordered_map.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "unordered_multimap_std_string_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multimap>>>>(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multimap>>>>(a0); } ), "doc" , pybind11::arg("__n")); @@ -273,7 +273,7 @@ void bind_std_stl_multiset(std::function< pybind11::module &(std::string const & void bind_std_unordered_set(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::unordered_multiset file:bits/unordered_set.h line:698 + { // std::unordered_multiset file:bits/unordered_set.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_multiset_float_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multiset(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multiset(a0); } ), "doc" , pybind11::arg("__n")); @@ -344,22 +344,22 @@ void bind_std_unordered_set(std::function< pybind11::module &(std::string const void bind_T42_stl_names_multi(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::multimap, class std::allocator > >) file:T42.stl.names.multi.hpp line:31 + // foo(class std::multimap, class std::allocator > >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::multimap, class std::allocator > >)) &foo, "C++: foo(class std::multimap, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::multiset, class std::allocator >) file:T42.stl.names.multi.hpp line:34 + // foo(class std::multiset, class std::allocator >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::multiset, class std::allocator >)) &foo, "C++: foo(class std::multiset, class std::allocator >) --> void", pybind11::arg("")); - // foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) file:T42.stl.names.multi.hpp line:38 + // foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::unordered_multiset, struct std::equal_to, class std::allocator >)) &foo, "C++: foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) --> void", pybind11::arg("")); - // foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) file:T42.stl.names.multi.hpp line:41 + // foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::unordered_multimap, struct std::equal_to, class std::allocator > >)) &foo, "C++: foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multi.hpp line:45 + // foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); - // foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multi.hpp line:48 + // foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multi.hpp line: M("").def("foo", (void (*)(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); } diff --git a/test/T42.stl.names.multimap.ref.cpp b/test/T42.stl.names.multimap.ref.cpp index c1b06ad6..f870e2f5 100644 --- a/test/T42.stl.names.multimap.ref.cpp +++ b/test/T42.stl.names.multimap.ref.cpp @@ -16,13 +16,13 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_float_float_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_float_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const float &, const float &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const float &, const float &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); @@ -58,14 +58,14 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const & void bind_std_functional_hash(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::hash file:bits/functional_hash.h line:164 + { // std::hash file:bits/functional_hash.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_float_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def( pybind11::init( [](std::hash const &o){ return new std::hash(o); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(float) const) &std::hash::operator(), "C++: std::hash::operator()(float) const --> std::size_t", pybind11::arg("__val")); cl.def("assign", (struct std::hash & (std::hash::*)(const struct std::hash &)) &std::hash::operator=, "C++: std::hash::operator=(const struct std::hash &) --> struct std::hash &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::multimap file:bits/stl_multimap.h line:95 + { // std::multimap file:bits/stl_multimap.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "multimap_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::multimap(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multimap(a0); } ), "doc" , pybind11::arg("__comp")); @@ -84,7 +84,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons cl.def("count", (unsigned long (std::multimap::*)(const float &) const) &std::multimap, std::allocator > >::count, "C++: std::multimap, std::allocator > >::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair >, struct std::_Rb_tree_iterator > > (std::multimap::*)(const float &)) &std::multimap, std::allocator > >::equal_range, "C++: std::multimap, std::allocator > >::equal_range(const float &) --> struct std::pair >, struct std::_Rb_tree_iterator > >", pybind11::arg("__x")); } - { // std::multimap file:bits/stl_multimap.h line:95 + { // std::multimap file:bits/stl_multimap.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "multimap_float_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::multimap>>>>(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multimap>>>>(a0); } ), "doc" , pybind11::arg("__comp")); @@ -133,7 +133,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons void bind_std_unordered_map(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::unordered_multimap file:bits/unordered_map.h line:778 + { // std::unordered_multimap file:bits/unordered_map.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_multimap_float_int_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multimap(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multimap(a0); } ), "doc" , pybind11::arg("__n")); @@ -164,7 +164,7 @@ void bind_std_unordered_map(std::function< pybind11::module &(std::string const cl.def("rehash", (void (std::unordered_multimap::*)(unsigned long)) &std::unordered_multimap, std::equal_to, std::allocator > >::rehash, "C++: std::unordered_multimap, std::equal_to, std::allocator > >::rehash(unsigned long) --> void", pybind11::arg("__n")); cl.def("reserve", (void (std::unordered_multimap::*)(unsigned long)) &std::unordered_multimap, std::equal_to, std::allocator > >::reserve, "C++: std::unordered_multimap, std::equal_to, std::allocator > >::reserve(unsigned long) --> void", pybind11::arg("__n")); } - { // std::unordered_multimap file:bits/unordered_map.h line:778 + { // std::unordered_multimap file:bits/unordered_map.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "unordered_multimap_float_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multimap>>>>(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multimap>>>>(a0); } ), "doc" , pybind11::arg("__n")); @@ -229,16 +229,16 @@ void bind_std_unordered_map(std::function< pybind11::module &(std::string const void bind_T42_stl_names_multimap(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::multimap, class std::allocator > >) file:T42.stl.names.multimap.hpp line:29 + // foo(class std::multimap, class std::allocator > >) file:T42.stl.names.multimap.hpp line: M("").def("foo", (void (*)(class std::multimap, class std::allocator > >)) &foo, "C++: foo(class std::multimap, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) file:T42.stl.names.multimap.hpp line:33 + // foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) file:T42.stl.names.multimap.hpp line: M("").def("foo", (void (*)(class std::unordered_multimap, struct std::equal_to, class std::allocator > >)) &foo, "C++: foo(class std::unordered_multimap, struct std::equal_to, class std::allocator > >) --> void", pybind11::arg("")); - // foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multimap.hpp line:37 + // foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multimap.hpp line: M("").def("foo", (void (*)(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); - // foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multimap.hpp line:40 + // foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) file:T42.stl.names.multimap.hpp line: M("").def("foo", (void (*)(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >)) &foo, "C++: foo(class std::unordered_multimap >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::hash, struct std::equal_to, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > > >) --> void", pybind11::arg("")); } diff --git a/test/T42.stl.names.multiset.ref.cpp b/test/T42.stl.names.multiset.ref.cpp index e57161e4..7b07ff8c 100644 --- a/test/T42.stl.names.multiset.ref.cpp +++ b/test/T42.stl.names.multiset.ref.cpp @@ -16,13 +16,13 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_float_float_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_float_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const float &, const float &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const float &, const float &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); @@ -57,14 +57,14 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const & void bind_std_functional_hash(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::hash file:bits/functional_hash.h line:164 + { // std::hash file:bits/functional_hash.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_float_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def( pybind11::init( [](std::hash const &o){ return new std::hash(o); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(float) const) &std::hash::operator(), "C++: std::hash::operator()(float) const --> std::size_t", pybind11::arg("__val")); cl.def("assign", (struct std::hash & (std::hash::*)(const struct std::hash &)) &std::hash::operator=, "C++: std::hash::operator=(const struct std::hash &) --> struct std::hash &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::multiset file:bits/stl_multiset.h line:92 + { // std::multiset file:bits/stl_multiset.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "multiset_float_t", ""); cl.def( pybind11::init( [](){ return new std::multiset(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::multiset(a0); } ), "doc" , pybind11::arg("__comp")); @@ -84,7 +84,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons cl.def("count", (unsigned long (std::multiset::*)(const float &) const) &std::multiset::count, "C++: std::multiset::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair, struct std::_Rb_tree_const_iterator > (std::multiset::*)(const float &)) &std::multiset::equal_range, "C++: std::multiset::equal_range(const float &) --> struct std::pair, struct std::_Rb_tree_const_iterator >", pybind11::arg("__x")); } - { // std::unordered_multiset file:bits/unordered_set.h line:698 + { // std::unordered_multiset file:bits/unordered_set.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_multiset_float_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_multiset(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_multiset(a0); } ), "doc" , pybind11::arg("__n")); @@ -144,10 +144,10 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons void bind_T42_stl_names_multiset(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::multiset, class std::allocator >) file:T42.stl.names.multiset.hpp line:29 + // foo(class std::multiset, class std::allocator >) file:T42.stl.names.multiset.hpp line: M("").def("foo", (void (*)(class std::multiset, class std::allocator >)) &foo, "C++: foo(class std::multiset, class std::allocator >) --> void", pybind11::arg("")); - // foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) file:T42.stl.names.multiset.hpp line:33 + // foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) file:T42.stl.names.multiset.hpp line: M("").def("foo", (void (*)(class std::unordered_multiset, struct std::equal_to, class std::allocator >)) &foo, "C++: foo(class std::unordered_multiset, struct std::equal_to, class std::allocator >) --> void", pybind11::arg("")); } diff --git a/test/T42.stl.names.ref.cpp b/test/T42.stl.names.ref.cpp index aaf04705..2ceaa269 100644 --- a/test/T42.stl.names.ref.cpp +++ b/test/T42.stl.names.ref.cpp @@ -16,7 +16,7 @@ void bind_std_stl_deque(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::deque file:bits/stl_deque.h line:730 + { // std::deque file:bits/stl_deque.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "deque_int_t", ""); cl.def( pybind11::init( [](){ return new std::deque(); } ) ); cl.def( pybind11::init &>(), pybind11::arg("__a") ); @@ -71,7 +71,7 @@ void bind_std_stl_deque(std::function< pybind11::module &(std::string const &nam void bind_std_forward_list(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::forward_list file:bits/forward_list.h line:408 + { // std::forward_list file:bits/forward_list.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "forward_list_float_t", ""); cl.def( pybind11::init( [](){ return new std::forward_list(); } ), "doc" ); cl.def( pybind11::init &>(), pybind11::arg("__al") ); @@ -103,7 +103,7 @@ void bind_std_forward_list(std::function< pybind11::module &(std::string const & cl.def("sort", (void (std::forward_list::*)()) &std::forward_list::sort, "C++: std::forward_list::sort() --> void"); cl.def("reverse", (void (std::forward_list::*)()) &std::forward_list::reverse, "C++: std::forward_list::reverse() --> void"); } - { // std::list file:bits/stl_list.h line:438 + { // std::list file:bits/stl_list.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "list_double_t", ""); cl.def( pybind11::init( [](){ return new std::list(); } ) ); cl.def( pybind11::init &>(), pybind11::arg("__a") ); @@ -136,7 +136,7 @@ void bind_std_forward_list(std::function< pybind11::module &(std::string const & cl.def("reverse", (void (std::list::*)()) &std::list::reverse, "C++: std::list::reverse() --> void"); cl.def("sort", (void (std::list::*)()) &std::list::sort, "C++: std::list::sort() --> void"); } - { // std::vector file:bits/stl_vector.h line:210 + { // std::vector file:bits/stl_vector.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::vector(); } ) ); cl.def( pybind11::init &>(), pybind11::arg("__a") ); @@ -200,7 +200,7 @@ void bind_std_forward_list(std::function< pybind11::module &(std::string const & void bind_std_stl_vector(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::vector file:bits/stl_vector.h line:210 + { // std::vector file:bits/stl_vector.h line: pybind11::class_>, std::shared_ptr>>> cl(M("std"), "vector_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::vector>(); } ) ); cl.def( pybind11::init > > &>(), pybind11::arg("__a") ); @@ -242,7 +242,7 @@ void bind_std_stl_vector(std::function< pybind11::module &(std::string const &na cl.def("swap", (void (std::vector>::*)(class std::vector >, class std::allocator > > > &)) &std::vector>::swap, "C++: std::vector>::swap(class std::vector >, class std::allocator > > > &) --> void", pybind11::arg("__x")); cl.def("clear", (void (std::vector>::*)()) &std::vector>::clear, "C++: std::vector>::clear() --> void"); } - { // std::vector file:bits/stl_vector.h line:210 + { // std::vector file:bits/stl_vector.h line: pybind11::class_>>, std::shared_ptr>>>> cl(M("std"), "vector_std_vector_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::vector>>(); } ) ); cl.def( pybind11::init >, class std::allocator > > > > &>(), pybind11::arg("__a") ); @@ -309,7 +309,7 @@ void bind_std_stl_vector(std::function< pybind11::module &(std::string const &na void bind_std_stl_vector_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::vector file:bits/stl_vector.h line:210 + { // std::vector file:bits/stl_vector.h line: pybind11::class_>>>, std::shared_ptr>>>>> cl(M("std"), "vector_std_list_std_forward_list_std_deque_double_t", ""); cl.def( pybind11::init( [](){ return new std::vector>>>(); } ) ); cl.def( pybind11::init >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > &>(), pybind11::arg("__a") ); @@ -367,25 +367,25 @@ void bind_std_stl_vector_1(std::function< pybind11::module &(std::string const & void bind_T42_stl_names(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::list >) file:T42.stl.names.hpp line:25 + // foo(class std::list >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::list >)) &foo, "C++: foo(class std::list >) --> void", pybind11::arg("")); - // foo(class std::forward_list >) file:T42.stl.names.hpp line:28 + // foo(class std::forward_list >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::forward_list >)) &foo, "C++: foo(class std::forward_list >) --> void", pybind11::arg("")); - // foo(class std::vector >) file:T42.stl.names.hpp line:31 + // foo(class std::vector >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::vector >)) &foo, "C++: foo(class std::vector >) --> void", pybind11::arg("")); - // foo(class std::deque >) file:T42.stl.names.hpp line:34 + // foo(class std::deque >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::deque >)) &foo, "C++: foo(class std::deque >) --> void", pybind11::arg("")); - // foo(class std::vector >, class std::allocator > > >) file:T42.stl.names.hpp line:38 + // foo(class std::vector >, class std::allocator > > >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::vector >, class std::allocator > > >)) &foo, "C++: foo(class std::vector >, class std::allocator > > >) --> void", pybind11::arg("")); - // foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >) file:T42.stl.names.hpp line:41 + // foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >)) &foo, "C++: foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >) --> void", pybind11::arg("")); - // foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >) file:T42.stl.names.hpp line:45 + // foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >) file:T42.stl.names.hpp line: M("").def("foo", (void (*)(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >)) &foo, "C++: foo(class std::vector >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >) --> void", pybind11::arg("")); } diff --git a/test/T42.stl.names.set.ref.cpp b/test/T42.stl.names.set.ref.cpp index 37af8775..e2fa91ec 100644 --- a/test/T42.stl.names.set.ref.cpp +++ b/test/T42.stl.names.set.ref.cpp @@ -16,13 +16,13 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::binary_function file:bits/stl_function.h line:114 + { // std::binary_function file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "binary_function_float_float_bool_t", ""); cl.def( pybind11::init( [](std::binary_function const &o){ return new std::binary_function(o); } ) ); cl.def( pybind11::init( [](){ return new std::binary_function(); } ) ); cl.def("assign", (struct std::binary_function & (std::binary_function::*)(const struct std::binary_function &)) &std::binary_function::operator=, "C++: std::binary_function::operator=(const struct std::binary_function &) --> struct std::binary_function &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::equal_to file:bits/stl_function.h line:204 + { // std::equal_to file:bits/stl_function.h line: pybind11::class_, std::shared_ptr>, std::binary_function> cl(M("std"), "equal_to_float_t", ""); cl.def( pybind11::init( [](){ return new std::equal_to(); } ) ); cl.def("__call__", (bool (std::equal_to::*)(const float &, const float &) const) &std::equal_to::operator(), "C++: std::equal_to::operator()(const float &, const float &) const --> bool", pybind11::arg("__x"), pybind11::arg("__y")); @@ -57,14 +57,14 @@ void bind_std_stl_function(std::function< pybind11::module &(std::string const & void bind_std_functional_hash(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::hash file:bits/functional_hash.h line:164 + { // std::hash file:bits/functional_hash.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "hash_float_t", ""); cl.def( pybind11::init( [](){ return new std::hash(); } ) ); cl.def( pybind11::init( [](std::hash const &o){ return new std::hash(o); } ) ); cl.def("__call__", (std::size_t (std::hash::*)(float) const) &std::hash::operator(), "C++: std::hash::operator()(float) const --> std::size_t", pybind11::arg("__val")); cl.def("assign", (struct std::hash & (std::hash::*)(const struct std::hash &)) &std::hash::operator=, "C++: std::hash::operator=(const struct std::hash &) --> struct std::hash &", pybind11::return_value_policy::automatic, pybind11::arg("")); } - { // std::set file:bits/stl_set.h line:90 + { // std::set file:bits/stl_set.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "set_float_t", ""); cl.def( pybind11::init( [](){ return new std::set(); } ) ); cl.def( pybind11::init( [](const struct std::less & a0){ return new std::set(a0); } ), "doc" , pybind11::arg("__comp")); @@ -85,7 +85,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons cl.def("count", (unsigned long (std::set::*)(const float &) const) &std::set::count, "C++: std::set::count(const float &) const --> unsigned long", pybind11::arg("__x")); cl.def("equal_range", (struct std::pair, struct std::_Rb_tree_const_iterator > (std::set::*)(const float &)) &std::set::equal_range, "C++: std::set::equal_range(const float &) --> struct std::pair, struct std::_Rb_tree_const_iterator >", pybind11::arg("__x")); } - { // std::set file:bits/stl_set.h line:90 + { // std::set file:bits/stl_set.h line: pybind11::class_>>>>, std::shared_ptr>>>>>> cl(M("std"), "set_std_list_std_forward_list_std_deque_std_vector_double_t", ""); cl.def( pybind11::init( [](){ return new std::set>>>>(); } ) ); cl.def( pybind11::init( [](const struct std::less >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > & a0){ return new std::set>>>>(a0); } ), "doc" , pybind11::arg("__comp")); @@ -128,7 +128,7 @@ void bind_std_functional_hash(std::function< pybind11::module &(std::string cons void bind_std_unordered_set(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // std::unordered_set file:bits/unordered_set.h line:93 + { // std::unordered_set file:bits/unordered_set.h line: pybind11::class_, std::shared_ptr>> cl(M("std"), "unordered_set_float_t", ""); cl.def( pybind11::init( [](){ return new std::unordered_set(); } ), "doc" ); cl.def( pybind11::init( [](unsigned long const & a0){ return new std::unordered_set(a0); } ), "doc" , pybind11::arg("__n")); @@ -193,13 +193,13 @@ void bind_std_unordered_set(std::function< pybind11::module &(std::string const void bind_T42_stl_names_set(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class std::set, class std::allocator >) file:T42.stl.names.set.hpp line:28 + // foo(class std::set, class std::allocator >) file:T42.stl.names.set.hpp line: M("").def("foo", (void (*)(class std::set, class std::allocator >)) &foo, "C++: foo(class std::set, class std::allocator >) --> void", pybind11::arg("")); - // foo(class std::unordered_set, struct std::equal_to, class std::allocator >) file:T42.stl.names.set.hpp line:31 + // foo(class std::unordered_set, struct std::equal_to, class std::allocator >) file:T42.stl.names.set.hpp line: M("").def("foo", (void (*)(class std::unordered_set, struct std::equal_to, class std::allocator >)) &foo, "C++: foo(class std::unordered_set, struct std::equal_to, class std::allocator >) --> void", pybind11::arg("")); - // foo(class std::set >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > >) file:T42.stl.names.set.hpp line:35 + // foo(class std::set >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > >) file:T42.stl.names.set.hpp line: M("").def("foo", (void (*)(class std::set >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > >)) &foo, "C++: foo(class std::set >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > >, struct std::less >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > >, class std::allocator >, class std::allocator > > >, class std::allocator >, class std::allocator > > > > > > > > >) --> void", pybind11::arg("")); } diff --git a/test/T43.stl.pybind11_include_stl.ref.cpp b/test/T43.stl.pybind11_include_stl.ref.cpp index 164fdb42..f0c911b2 100644 --- a/test/T43.stl.pybind11_include_stl.ref.cpp +++ b/test/T43.stl.pybind11_include_stl.ref.cpp @@ -34,7 +34,7 @@ void bind_T43_stl_pybind11_include_stl(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // test_include_stl(class std::vector >, class std::deque >, class std::list >, struct std::array, class std::valarray, class std::set, class std::allocator >, class std::unordered_set, struct std::equal_to, class std::allocator >, class std::map, class std::allocator > >, class std::unordered_map, struct std::equal_to, class std::allocator > >) file:T43.stl.pybind11_include_stl.hpp line:22 + // test_include_stl(class std::vector >, class std::deque >, class std::list >, struct std::array, class std::valarray, class std::set, class std::allocator >, class std::unordered_set, struct std::equal_to, class std::allocator >, class std::map, class std::allocator > >, class std::unordered_map, struct std::equal_to, class std::allocator > >) file:T43.stl.pybind11_include_stl.hpp line: M("").def("test_include_stl", (void (*)(class std::vector >, class std::deque >, class std::list >, struct std::array, class std::valarray, class std::set, class std::allocator >, class std::unordered_set, struct std::equal_to, class std::allocator >, class std::map, class std::allocator > >, class std::unordered_map, struct std::equal_to, class std::allocator > >)) &test_include_stl, "C++: test_include_stl(class std::vector >, class std::deque >, class std::list >, struct std::array, class std::valarray, class std::set, class std::allocator >, class std::unordered_set, struct std::equal_to, class std::allocator >, class std::map, class std::allocator > >, class std::unordered_map, struct std::equal_to, class std::allocator > >) --> void", pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg(""), pybind11::arg("")); } diff --git a/test/T50.add_on_binder.ref.cpp b/test/T50.add_on_binder.ref.cpp index 46852dd5..d0b0fb46 100644 --- a/test/T50.add_on_binder.ref.cpp +++ b/test/T50.add_on_binder.ref.cpp @@ -15,7 +15,7 @@ void bind_T50_add_on_binder(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // Matrix file:T50.add_on_binder.hpp line:18 + { // Matrix file:T50.add_on_binder.hpp line: pybind11::class_, std::shared_ptr>> cl(M(""), "Matrix_int_t", ""); cl.def( pybind11::init( [](){ return new Matrix(); } ) ); diff --git a/test/T50.namespace_binder.ref.cpp b/test/T50.namespace_binder.ref.cpp index 6ad0b841..34b9219b 100644 --- a/test/T50.namespace_binder.ref.cpp +++ b/test/T50.namespace_binder.ref.cpp @@ -14,7 +14,7 @@ void bind_T50_namespace_binder(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo_root() file:T50.namespace_binder.hpp line:16 + // foo_root() file:T50.namespace_binder.hpp line: M("").def("foo_root", (void (*)()) &foo_root, "C++: foo_root() --> void"); } @@ -40,7 +40,7 @@ void bind_T50_namespace_binder_1(std::function< pybind11::module &(std::string c { add_on_binder_for_aaaa(M("aaaa")); - // aaaa::foo_aaaa() file:T50.namespace_binder.hpp line:21 + // aaaa::foo_aaaa() file:T50.namespace_binder.hpp line: M("aaaa").def("foo_aaaa", (void (*)()) &aaaa::foo_aaaa, "C++: aaaa::foo_aaaa() --> void"); } diff --git a/test/T60.custom_shared.ref.cpp b/test/T60.custom_shared.ref.cpp index 6c5c64d6..2e0027ed 100644 --- a/test/T60.custom_shared.ref.cpp +++ b/test/T60.custom_shared.ref.cpp @@ -18,7 +18,7 @@ void bind_T60_custom_shared(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // E1 file:T60.custom_shared.hpp line:21 + // E1 file:T60.custom_shared.hpp line: pybind11::enum_(M(""), "E1", pybind11::arithmetic(), "") .value("E1_V0", E1_V0) .value("E1_V1", E1_V1) @@ -26,7 +26,7 @@ void bind_T60_custom_shared(std::function< pybind11::module &(std::string const ; - // E2_struct file:T60.custom_shared.hpp line:23 + // E2_struct file:T60.custom_shared.hpp line: pybind11::enum_(M(""), "E2_struct", "") .value("V0", E2_struct::V0) .value("V1", E2_struct::V1) @@ -34,14 +34,14 @@ void bind_T60_custom_shared(std::function< pybind11::module &(std::string const ; - // E3_class file:T60.custom_shared.hpp line:24 + // E3_class file:T60.custom_shared.hpp line: pybind11::enum_(M(""), "E3_class", "") .value("V0", E3_class::V0) .value("V1", E3_class::V1); ; - { // A file:T60.custom_shared.hpp line:27 + { // A file:T60.custom_shared.hpp line: pybind11::class_> cl(M(""), "A", ""); cl.def( pybind11::init( [](){ return new A(); } ) ); diff --git a/test/T60.pybind11.ref.cpp b/test/T60.pybind11.ref.cpp index 8908f789..ccecc748 100644 --- a/test/T60.pybind11.ref.cpp +++ b/test/T60.pybind11.ref.cpp @@ -22,73 +22,73 @@ void bind_T60_pybind11(std::function< pybind11::module &(std::string const &namespace_) > &M) { - // foo(class pybind11::handle &) file:T60.pybind11.hpp line:15 + // foo(class pybind11::handle &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::handle &)) &foo, "C++: foo(class pybind11::handle &) --> void", pybind11::arg("")); - // foo(class pybind11::object &) file:T60.pybind11.hpp line:16 + // foo(class pybind11::object &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::object &)) &foo, "C++: foo(class pybind11::object &) --> void", pybind11::arg("")); - // foo(class pybind11::module_ &) file:T60.pybind11.hpp line:17 + // foo(class pybind11::module_ &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::module_ &)) &foo, "C++: foo(class pybind11::module_ &) --> void", pybind11::arg("")); - // foo(class pybind11::iterator &) file:T60.pybind11.hpp line:18 + // foo(class pybind11::iterator &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::iterator &)) &foo, "C++: foo(class pybind11::iterator &) --> void", pybind11::arg("")); - // foo(class pybind11::iterable &) file:T60.pybind11.hpp line:20 + // foo(class pybind11::iterable &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::iterable &)) &foo, "C++: foo(class pybind11::iterable &) --> void", pybind11::arg("")); - // foo(class pybind11::str &) file:T60.pybind11.hpp line:21 + // foo(class pybind11::str &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::str &)) &foo, "C++: foo(class pybind11::str &) --> void", pybind11::arg("")); - // foo(class pybind11::bytes &) file:T60.pybind11.hpp line:22 + // foo(class pybind11::bytes &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::bytes &)) &foo, "C++: foo(class pybind11::bytes &) --> void", pybind11::arg("")); - // foo(class pybind11::none &) file:T60.pybind11.hpp line:24 + // foo(class pybind11::none &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::none &)) &foo, "C++: foo(class pybind11::none &) --> void", pybind11::arg("")); - // foo(class pybind11::ellipsis &) file:T60.pybind11.hpp line:25 + // foo(class pybind11::ellipsis &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::ellipsis &)) &foo, "C++: foo(class pybind11::ellipsis &) --> void", pybind11::arg("")); - // foo(class pybind11::bool_ &) file:T60.pybind11.hpp line:26 + // foo(class pybind11::bool_ &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::bool_ &)) &foo, "C++: foo(class pybind11::bool_ &) --> void", pybind11::arg("")); - // foo(class pybind11::int_ &) file:T60.pybind11.hpp line:27 + // foo(class pybind11::int_ &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::int_ &)) &foo, "C++: foo(class pybind11::int_ &) --> void", pybind11::arg("")); - // foo(class pybind11::float_ &) file:T60.pybind11.hpp line:28 + // foo(class pybind11::float_ &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::float_ &)) &foo, "C++: foo(class pybind11::float_ &) --> void", pybind11::arg("")); - // foo(class pybind11::weakref &) file:T60.pybind11.hpp line:29 + // foo(class pybind11::weakref &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::weakref &)) &foo, "C++: foo(class pybind11::weakref &) --> void", pybind11::arg("")); - // foo(class pybind11::slice &) file:T60.pybind11.hpp line:30 + // foo(class pybind11::slice &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::slice &)) &foo, "C++: foo(class pybind11::slice &) --> void", pybind11::arg("")); - // foo(class pybind11::capsule &) file:T60.pybind11.hpp line:31 + // foo(class pybind11::capsule &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::capsule &)) &foo, "C++: foo(class pybind11::capsule &) --> void", pybind11::arg("")); - // foo(class pybind11::tuple &) file:T60.pybind11.hpp line:32 + // foo(class pybind11::tuple &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::tuple &)) &foo, "C++: foo(class pybind11::tuple &) --> void", pybind11::arg("")); - // foo(class pybind11::dict &) file:T60.pybind11.hpp line:35 + // foo(class pybind11::dict &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::dict &)) &foo, "C++: foo(class pybind11::dict &) --> void", pybind11::arg("")); - // foo(class pybind11::sequence &) file:T60.pybind11.hpp line:36 + // foo(class pybind11::sequence &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::sequence &)) &foo, "C++: foo(class pybind11::sequence &) --> void", pybind11::arg("")); - // foo(class pybind11::list &) file:T60.pybind11.hpp line:37 + // foo(class pybind11::list &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::list &)) &foo, "C++: foo(class pybind11::list &) --> void", pybind11::arg("")); - // foo(class pybind11::set &) file:T60.pybind11.hpp line:40 + // foo(class pybind11::set &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::set &)) &foo, "C++: foo(class pybind11::set &) --> void", pybind11::arg("")); - // foo(class pybind11::function &) file:T60.pybind11.hpp line:41 + // foo(class pybind11::function &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::function &)) &foo, "C++: foo(class pybind11::function &) --> void", pybind11::arg("")); - // foo(class pybind11::buffer &) file:T60.pybind11.hpp line:42 + // foo(class pybind11::buffer &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::buffer &)) &foo, "C++: foo(class pybind11::buffer &) --> void", pybind11::arg("")); - // foo(class pybind11::array &) file:T60.pybind11.hpp line:44 + // foo(class pybind11::array &) file:T60.pybind11.hpp line: M("").def("foo", (void (*)(class pybind11::array &)) &foo, "C++: foo(class pybind11::array &) --> void", pybind11::arg("")); } diff --git a/test/T70.module_local.ref.cpp b/test/T70.module_local.ref.cpp index 4b59f796..9b6252b3 100644 --- a/test/T70.module_local.ref.cpp +++ b/test/T70.module_local.ref.cpp @@ -15,7 +15,7 @@ void bind_T70_module_local(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaa::A file:T70.module_local.hpp line:16 + { // aaa::A file:T70.module_local.hpp line: pybind11::class_> cl(M("aaa"), "A", "", pybind11::module_local()); cl.def( pybind11::init( [](){ return new aaa::A(); } ) ); cl.def("foo", (void (aaa::A::*)()) &aaa::A::foo, "C++: aaa::A::foo() --> void"); @@ -40,7 +40,7 @@ void bind_T70_module_local(std::function< pybind11::module &(std::string const & void bind_T70_module_local_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbb::B file:T70.module_local.hpp line:24 + { // bbb::B file:T70.module_local.hpp line: pybind11::class_> cl(M("bbb"), "B", ""); cl.def( pybind11::init( [](){ return new bbb::B(); } ) ); cl.def("foo", (void (bbb::B::*)()) &bbb::B::foo, "C++: bbb::B::foo() --> void"); diff --git a/test/T70.options.ref.cpp b/test/T70.options.ref.cpp index 2355ed95..987f2eb8 100644 --- a/test/T70.options.ref.cpp +++ b/test/T70.options.ref.cpp @@ -17,16 +17,16 @@ void bind_T70_options(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::AAAA file:T70.options.hpp line:13 + { // aaaa::AAAA file:T70.options.hpp line: pybind11::class_> cl(M("aaaa"), "AAAA", ""); cl.def( pybind11::init( [](){ return new aaaa::AAAA(); } ) ); cl.def("foo", (void (aaaa::AAAA::*)()) &aaaa::AAAA::foo, "C++: aaaa::AAAA::foo() --> void"); cl.def_static("static_foo", (void (*)(int)) &aaaa::AAAA::foo, "C++: aaaa::AAAA::foo(int) --> void", pybind11::arg("")); } - // aaaa::foo_aaaa() file:T70.options.hpp line:19 + // aaaa::foo_aaaa() file:T70.options.hpp line: M("aaaa").def("foo_aaaa", (void (*)()) &aaaa::foo_aaaa, "C++: aaaa::foo_aaaa() --> void"); - // aaaa::E1 file:T70.options.hpp line:21 + // aaaa::E1 file:T70.options.hpp line: pybind11::enum_(M("aaaa"), "E1", pybind11::arithmetic(), "") .value("E1_V0", aaaa::E1_V0) .value("E1_V1", aaaa::E1_V1) @@ -55,11 +55,11 @@ void bind_T70_options(std::function< pybind11::module &(std::string const &names void bind_T70_options_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::cccc::CCCC file:T70.options.hpp line:25 + { // aaaa::cccc::CCCC file:T70.options.hpp line: pybind11::class_> cl(M("aaaa::cccc"), "CCCC", ""); cl.def( pybind11::init( [](){ return new aaaa::cccc::CCCC(); } ) ); } - // aaaa::cccc::foo_CCCC() file:T70.options.hpp line:26 + // aaaa::cccc::foo_CCCC() file:T70.options.hpp line: M("aaaa::cccc").def("foo_CCCC", (void (*)()) &aaaa::cccc::foo_CCCC, "C++: aaaa::cccc::foo_CCCC() --> void"); } @@ -83,11 +83,11 @@ void bind_T70_options_1(std::function< pybind11::module &(std::string const &nam void bind_T70_options_2(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaaa::bbbb::BBBB file:T70.options.hpp line:33 + { // aaaa::bbbb::BBBB file:T70.options.hpp line: pybind11::class_> cl(M("aaaa::bbbb"), "BBBB", ""); cl.def( pybind11::init( [](){ return new aaaa::bbbb::BBBB(); } ) ); } - // aaaa::bbbb::foo_bbbb() file:T70.options.hpp line:34 + // aaaa::bbbb::foo_bbbb() file:T70.options.hpp line: M("aaaa::bbbb").def("foo_bbbb", (void (*)()) &aaaa::bbbb::foo_bbbb, "C++: aaaa::bbbb::foo_bbbb() --> void"); } diff --git a/test/T71.module_local.ref.cpp b/test/T71.module_local.ref.cpp index 1f7a5d92..18b40727 100644 --- a/test/T71.module_local.ref.cpp +++ b/test/T71.module_local.ref.cpp @@ -16,12 +16,12 @@ void bind_T71_module_local(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaa::A file:T71.module_local.hpp line:16 + { // aaa::A file:T71.module_local.hpp line: pybind11::class_> cl(M("aaa"), "A", "", pybind11::module_local()); cl.def( pybind11::init( [](){ return new aaa::A(); } ) ); cl.def("foo", (void (aaa::A::*)()) &aaa::A::foo, "C++: aaa::A::foo() --> void"); } - // aaa::E1 file:T71.module_local.hpp line:22 + // aaa::E1 file:T71.module_local.hpp line: pybind11::enum_(M("aaa"), "E1", pybind11::arithmetic(), "", pybind11::module_local()) .value("E1_V0", aaa::E1_V0) .value("E1_V1", aaa::E1_V1) @@ -49,7 +49,7 @@ void bind_T71_module_local(std::function< pybind11::module &(std::string const & void bind_T71_module_local_1(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // bbb::B file:T71.module_local.hpp line:26 + { // bbb::B file:T71.module_local.hpp line: pybind11::class_> cl(M("bbb"), "B", ""); cl.def( pybind11::init( [](){ return new bbb::B(); } ) ); cl.def("foo", (void (bbb::B::*)()) &bbb::B::foo, "C++: bbb::B::foo() --> void"); diff --git a/test/T80.custom_trampoline.ref.cpp b/test/T80.custom_trampoline.ref.cpp index 7c9e24be..6ac45288 100644 --- a/test/T80.custom_trampoline.ref.cpp +++ b/test/T80.custom_trampoline.ref.cpp @@ -14,7 +14,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// aaa::A file:T80.custom_trampoline.hpp line:26 +// aaa::A file:T80.custom_trampoline.hpp line: struct PyCallBack_aaa_A_double_t : public aaa::A { using aaa::A::A; @@ -25,7 +25,7 @@ struct PyCallBack_aaa_A_double_t : public aaa::A { void bind_T80_custom_trampoline(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaa::A file:T80.custom_trampoline.hpp line:26 + { // aaa::A file:T80.custom_trampoline.hpp line: pybind11::class_, std::shared_ptr>, PyCallBack_aaa_A_double_t> cl(M("aaa"), "A_double_t", ""); cl.def( pybind11::init( [](){ return new aaa::A(); }, [](){ return new PyCallBack_aaa_A_double_t(); } ) ); cl.def( pybind11::init( [](PyCallBack_aaa_A_double_t const &o){ return new PyCallBack_aaa_A_double_t(o); } ) ); diff --git a/test/T81.custom_trampoline_with_args.ref.cpp b/test/T81.custom_trampoline_with_args.ref.cpp index df1a3ea6..a2832b55 100644 --- a/test/T81.custom_trampoline_with_args.ref.cpp +++ b/test/T81.custom_trampoline_with_args.ref.cpp @@ -18,7 +18,7 @@ PYBIND11_MAKE_OPAQUE(std::shared_ptr) #endif -// aaa::A file:T81.custom_trampoline_with_args.hpp line:26 +// aaa::A file:T81.custom_trampoline_with_args.hpp line: struct PyCallBack_aaa_A_double_t : public aaa::A { using aaa::A::A; @@ -29,7 +29,7 @@ struct PyCallBack_aaa_A_double_t : public aaa::A { void bind_T81_custom_trampoline_with_args(std::function< pybind11::module &(std::string const &namespace_) > &M) { - { // aaa::A file:T81.custom_trampoline_with_args.hpp line:26 + { // aaa::A file:T81.custom_trampoline_with_args.hpp line: pybind11::class_, std::shared_ptr>, PyCallBack_aaa_A_double_t> cl(M("aaa"), "A_double_t", ""); cl.def( pybind11::init( [](){ return new aaa::A(); }, [](){ return new PyCallBack_aaa_A_double_t(); } ) ); cl.def("foo", (void (aaa::A::*)(int, std::string, float)) &aaa::A::foo, "C++: aaa::A::foo(int, std::string, float) --> void", pybind11::arg("a"), pybind11::arg("b"), pybind11::arg("d")); diff --git a/test/self-test.py b/test/self-test.py index af861213..cfa9c09d 100755 --- a/test/self-test.py +++ b/test/self-test.py @@ -112,7 +112,7 @@ def run_test(test_path, build_dir, pyenv): python = pyenv.python python_includes = '-I'+pyenv.python_include_dir #'-I/usr/include/python2.7' - command_line = '{binder} --bind "" --root-module {root_module} --prefix {build_dir} --single-file --annotate-includes {config}{cli} {source} -- -x c++ -std=c++11 -I {source_dir} -I {source_dir}/.. -isystem {pybind11} {python_includes}' \ + command_line = '{binder} --bind "" --skip-line-number --root-module {root_module} --prefix {build_dir} --single-file --annotate-includes {config}{cli} {source} -- -x c++ -std=c++11 -I {source_dir} -I {source_dir}/.. -isystem {pybind11} {python_includes}' \ .format(binder=Options.binder, root_module=root_module, build_dir=build_dir, source_dir=source_dir, cli=cli, source=source_include, config='--config {}'.format(config) if config else '', pybind11=Options.pybind11, python_includes=python_includes) @@ -158,7 +158,7 @@ def main(): test_source_dir = os.path.dirname( os.path.abspath(__file__) ) - tests = Options.args or sorted( get_test_files(test_source_dir) ) + tests = Options.args or [ t for t in sorted( get_test_files(test_source_dir) ) if 'T61.smart_holder.hpp' not in t ] build_dir = test_source_dir + '/build' if os.path.isdir(build_dir): print('Removing old test dir {0} ...'.format(build_dir)); shutil.rmtree(build_dir) # remove old dir if any