Commit Graph
540 Commits
Author SHA1 Message Date
Gustavo J. A. M. Carneiro 2f45bba375 Let error handlers catch errors during generation of C++ class attribute wrappers 2008-07-20 22:04:33 +01:00
Gustavo J. A. M. Carneiro caf2f7fb91 Make CppClass parameter memory_policy slightly less restrictive (allow subclass to define memory_policy as long as no parent class has defined it before). 2008-07-20 19:44:14 +01:00
Gustavo J. A. M. Carneiro 6137f3916f Fix some more deprecations 2008-07-20 19:26:00 +01:00
Gustavo J. A. M. Carneiro ad4c34d4bf Fix deprecations. 2008-07-20 18:53:02 +01:00
Gustavo J. A. M. Carneiro 08e6d918d4 New cppclass.MemoryPolicy and memory_policy CppClass parameter. Closes Bug #247536 (CppClass: improve consistency of memory management parameters). 2008-07-18 19:24:38 +01:00
Gustavo J. A. M. Carneiro b44e4da782 Make deprecations as errors easy to turn off temporarily. 2008-07-18 19:22:22 +01:00
Gustavo J. A. M. Carneiro ceb4b9c2fe Split the cppclass.py file, as it was getting too big: move type handlers into new source file cppclass_typehandlers.py. 2008-07-18 16:40:33 +01:00
Gustavo J. A. M. Carneiro 355ebb0665 For examples and unit tests, turn deprecation warnings into exceptions; fix cases where deprecations were being used. 2008-07-18 14:47:47 +01:00
Gustavo J. A. M. Carneiro 3dd922a056 Better looking generated python code: split add_function/method/constructor calls into multiple lines (as suggested by Mathieu Lacage) 2008-07-16 19:54:43 +01:00
Gustavo J. A. M. Carneiro b1cc858018 Scan for __attribute__((deprecated)), enable deprecation mode when found 2008-07-16 19:34:57 +01:00
Gustavo J. A. M. Carneiro a1b3e1e0a1 Add API support for deprecations 2008-07-16 18:54:38 +01:00
Gustavo J. A. M. Carneiro 3aa14edfe6 Scan typedefs only after scanning for all classes. 2008-07-15 17:11:24 +01:00
Gustavo J. A. M. Carneiro 80bb7451e5 Scan for class typedefs. 2008-07-15 00:52:06 +01:00
Gustavo J. A. M. Carneiro 9006f11981 Remove debug print 2008-07-15 00:40:57 +01:00
Gustavo J. A. M. Carneiro f3a0c9a33c Module.add_typedef API, implemented only for C++ classes/structs for now. 2008-07-15 00:28:58 +01:00
Gustavo J. A. M. Carneiro f26ed63f39 Enable handling of the int32_t type 2008-07-14 10:43:48 +01:00
Gustavo J. A. M. Carneiro 98cc09f0e0 Remove deprecated calls to write_preamble from examples/tests 2008-07-13 19:11:17 +01:00
Gustavo J. A. M. Carneiro c10f5b9e2e Add default_value_type option to CppClassRefParameter. When used, code to handle default paraameters is generated using a temporary variable to hold the default parameter, instead of an expression. Unfortunately default_value_type cannot yet be introspected by the gccxml scanner. 2008-07-13 17:50:52 +01:00
Gustavo J. A. M. Carneiro b47d59ac20 Ensure we do not generate helper class for classes with subclassing disabled 2008-07-13 15:27:51 +01:00
Gustavo J. A. M. Carneiro 391bf27353 When scanning, only explicitly set allow_subclassing for root classes, child classes will inherit from the parent. 2008-07-13 14:59:06 +01:00
Gustavo J. A. M. Carneiro 8c25bb7241 Don't output private APIs 2008-07-11 13:03:22 +01:00
Gustavo J. A. M. Carneiro 212e9e2667 Link to the tutorial example online. 2008-07-11 12:58:01 +01:00
Gustavo J. A. M. Carneiro 43822a325a New API: Module.add_struct. 2008-07-11 12:19:33 +01:00
Gustavo J. A. M. Carneiro b0ed2c8954 Make str(CppMethod) work better with method objects with errors. 2008-07-11 12:17:57 +01:00
Gustavo J. A. M. Carneiro 224a7119ef copy the pre.py-doctest style instead of pre.py-src 2008-07-11 11:55:26 +01:00
Mathieu Lacage dbbf842ed0 Expanded tutorial. 2008-07-11 11:49:56 +01:00
Gustavo J. A. M. Carneiro a7341fe7ea Clarify the custodian parameter of CppClassPtrParameter and CppClassPtrReturnValue 2008-07-11 11:31:25 +01:00
Gustavo J. A. M. Carneiro 72fcf9a0dd Patch the generated CSS file to highlight literal blocks 2008-07-11 11:09:13 +01:00
Gustavo J. A. M. Carneiro a3d6ea3000 Fix epydoc cross-ref 2008-07-11 11:08:52 +01:00
Gustavo J. A. M. Carneiro a351d1490a Documentation typo (thanks Mathieu) 2008-07-10 12:09:59 +01:00
Gustavo J. A. M. Carneiro f457d57675 BuildValueParameters.get_parameters now accepts optional force_tuple_creation parameter, to add () in the returned template, thus forcing a tuple to be always created. 2008-07-09 18:17:24 +01:00
Gustavo J. A. M. Carneiro 9998e16aa8 Fix CppMethod.clone bug (is_pure_virtual was not being copied) 2008-07-09 12:44:13 +01:00
Gustavo J. A. M. Carneiro c3a7d4490a Add a __str__ function to CppMethod, allowing to pretty-print a method description (great for debugging purposes). 2008-07-09 12:43:42 +01:00
Gustavo J. A. M. Carneiro da8b7c17ed Fixing bug #246069, did some bug fixing along the way (related to virtual method parent callers), before discovering the bug was invalid. 2008-07-09 11:30:36 +01:00
Gustavo J. A. M. Carneiro a0934a1486 Add a module_file_base_name code generation option to toplevel modules 2008-07-06 17:54:47 +01:00
Gustavo J. A. M. Carneiro 0539390fe9 Implement uint32_t* parameter handler 2008-07-06 17:38:50 +01:00
Gustavo J. A. M. Carneiro 7c7fdb39ef Override the type_traits.has_public_destructor algorithm again.
I knew there was a reason for me having overridden it in the first place.  I just got the algorithm wrong the first time around.
2008-07-06 16:09:27 +01:00
Gustavo J. A. M. Carneiro bfbfcbdefe Fix protected constructor issues. 2008-07-06 15:53:04 +01:00
Gustavo J. A. M. Carneiro 3ee54f6ed8 Use pygccxml type_traits.has_public_destructor function instead of our own. 2008-07-06 15:51:11 +01:00
Gustavo J. A. M. Carneiro b809e6c15a Don't even try to generate code for CppDummyMethod's, they were never meant to generate code. 2008-07-06 14:54:23 +01:00
Gustavo J. A. M. Carneiro e1f813d97e Generate a tp_richcompare slot function for each type. For the time being it simply raises TypeError, just to avoid the trap of comparing objects when the default evil Python 2.x behaviour is to compare by wrapper pointer value. In the future, wrapping C++ comparison operators will be possible. 2008-07-06 12:57:37 +01:00
Gustavo J. A. M. Carneiro 49c62c8c03 Clean up the mess that became registering handlers for const types; add 'constness' to type handler codegeneration tests. 2008-07-03 18:22:31 +01:00
Gustavo J. A. M. Carneiro 108c696d03 Add a debug switch (-d) to enable debugger 2008-07-03 17:10:59 +01:00
Gustavo J. A. M. Carneiro 5bcc4ba3b6 Change one case of unit test using std::string to std::string const &, just for better testing.. 2008-07-03 15:18:48 +01:00
Gustavo J. A. M. Carneiro ef2c9d6251 Fix Bug #245097: Regression: Error 'declarated_t' object has no attribute 'base' 2008-07-03 15:06:48 +01:00
Mathieu Lacage 3d4b03f0dd Fix problem with class registration when an inner namespace class has a class defined in an outer namespace as base class. 2008-07-03 14:31:30 +01:00
Mathieu Lacage 613a4e98a4 Cleanups. 2008-07-03 14:27:28 +01:00
Gustavo J. A. M. Carneiro 8a890c4875 CppClass.add_output_stream() documentation and unit tests. 2008-07-02 11:32:02 +01:00
Gustavo J. A. M. Carneiro 3623b67c43 Minor fixes 2008-07-02 11:31:32 +01:00
Gustavo J. A. M. Carneiro a2068d0789 s/operator_os/output_stream_operator/ (more readable) 2008-07-02 10:52:29 +01:00