Thanks to all the people that have contributed patches, bug reports and suggestions:
- My wife - Yulia
- John Pallister
- Matthias Baas
- Allen Bierbaum
- Georgiy Dernovoy
- Darren Garnier
- Gottfried Ganssauge
- Gaetan Lehmann
- Martin Preisler
- Miguel Lobo
- Jeremy Sanders
- Ben Schleimer
- Class free_operator_t is now able to provide references to the class declarations
instances it works on.
- Support for GCC-XML attributes was added. Many thanks to Miguel Lobo for
the implementation.
- A bug in parsing a function exception specification was fixed. Many thanks to
Jeremy Sanders.
- Support for a type/class "align", "offset" and "size" was added. Many thanks to
Ben Schleimer for the implementation.
- Support for GCC-XML 0.9 was added.
- Support for __restrict__ was added.
- declarations.has_trivial_copy was renamed to declarations.has_copy_constructor.
The old name is still available, but will be removed soon.
- declarations.priority_queue was renamed to declarations.priority_queue_traits.
- declarations.find_container_traits function was added.
- Support for "partial name" was added. "Partial name" is the class name, without
template default arguments. The functionality was added to std containers
classes.
- declarations.class_t and declarations.class_declaration_t has new property -
container_traits. This property describes std container element class.
- All logging is now done to stderr instead of stdout.
- Performance was improved. pygccxml is now 30-50% faster. The improvement
was achieved by using cElementTree package, iterparse functionality,
instead of standard XML SAX API. If cElementTree package is not available,
the built-in XML SAX package is used.
- is_base_and_derived function was changed. The second argument could be
a tuple, which contains classes. The function returns True if at least one
class derives from the base one.
- Class calldef_t has property - does_throw. It describes
whether the function throws any exception or not.
- Bug fixes: small bug was fixed in functionality that corrects GCC-XML reported
function default arguments. Reference to "enum" declaration extracted properly.
Many thanks to Martin Preisler for reporting the bug.
- New type traits have been added:
- is_std_ostream
- is_std_wostream
- C++ does not define implicit conversion between an integral type and void*.
declarations.is_convertible type traits was fixed.
declarations.is_noncopyable type traits implementation was slightly changed.
Now it checks explicitly that class has:
- default constructor
- copy constructor
- operator=
- destructor
If all listed functions exist, than the algorithm returns False, otherwise
it will continue to execute previous logic.
- declarations.class_declaration_t has new property - aliases. This is
a list of all aliases to the class declaration.
- The message of the exception, which is raised from declarations.mdecl_wrapper_t
class was improved and now clearly explains what the problem is.
Added new functionality: "I depend on them". Every declaration can report
types and declarations it depends on.
signed char and char are two different types. This bug was fixed and
now pygccxml treats them right. Many thanks to Gaetan Lehmann for reporting
the bug.
Declarations, read from GCC-XML generated file, could be saved in cache.
New type traits have been added:
Small improvement to algorithm, which extracts value_type
( mapped_type ) from "std" containers.
Few aliases to long method name were introduced:
Name
|
Alias
|
scopedef_t.variable
|
scopedef_t.var
|
scopedef_t.variables
|
scopedef_t.vars
|
scopedef_t.member_function
|
scopedef_t.mem_fun
|
scopedef_t.member_functions
|
scopedef_t.mem_funs
|
scopedef_t.free_function
|
scopedef_t.free_fun
|
scopedef_t.free_functions
|
scopedef_t.free_funs
|
Fixing bug related to array size and cache.
- Few small bug fix and unit tests have been introduced on 64 Bit platforms.
Many thanks to Gottfried Ganssauge! He also help me to discover and fix
some important bug in type_traits.__remove_alias function, by introducing
small example that reproduced the error.
- Huge speed improvement has been achieved (x10). Allen Bierbaum suggested to
save and reuse results of different pygccxml algorithms:
- declarations.remove_alias
- declarations.full_name
- declarations.access_type
- declarations.demangled_name
- declarations.declaration_path
- Interface changes:
- declarations.class_t:
- set_members method was removed
- adopt_declaration method was introduced, instead of set_members
- declarations.array_t class "set" accessor for size property was added.
- declarations.namespace_t.adopt_declaration method was added.
- declarations.variable_t.access_type property was added.
- New type traits have been added:
- Few bug were fixed.
- Documentation was improved.
pygccxml has been ported to MacOS X. Many thanks to Darren Garnier!
New type traits have been added:
- enum_traits
- class_traits
- class_declaration_traits
- is_std_string
- is_std_wstring
- remove_declarated
- has_public_less
- has_public_equal
- has_public_binary_operator
- smart_pointer_traits
- list_traits
- deque_traits
- queue_traits
- priority_queue
- vector_traits
- stack_traits
- map_traits
- multimap_traits
- hash_map_traits
- hash_multimap_traits
- set_traits
- hash_set_traits
- multiset_traits
- hash_multiset_traits
enumeration_t class interface was changed. Enumeration values are kept
in a list, instead of a dictionary. get_name2value_dict will build for
you dictionary, where key is an enumeration name, and value is an enumeration
value.
This has been done in order to provide stable order of enumeration values.
Now you can pass operator symbol, as a name to query functions:
cls = global_namespace.class_( 'my_class' )
op = cls.operator( '<' )
#instead of
op = cls.operator( symbol='<' )
pygccxml improved a lot functionality related to providing feedback to user:
- every package has its own logger
- only important user messages are written to stdout
- user messages are clear
Support to Java native types has been added.
It is possible to pass an arbitrary string as a parameter to GCC-XML.
Native java types has been added to fundamental types.
Cache classes implementation was improved.
Few bug were fixed.
Documentation was improved.
mdecl_wrapper_t.decls property was renamed to declarations.
The reason is that the current name ( decls ) conflicts with the method
of the same name in the decl interface from declarations.scopedef_t class.
So for example:
classes = ns.decls("class")
classes.decls("method")
This will fail because it finds the attribute decls which is not a callable.
- pygccxml now has power "select" interface. Read more about this cool feature
in tutorials.
- Improved support for template instantiations. pygccxml now take into
account demangled name of declarations. Please refer to documentation for
more explanantion.
- dummy_type_t - new type in types hierarchy. This is a very useful class
for code generation projects.
- New function - get_global_namespace. As you can guess, it will find and
return reference to global namespace.
- New functionality in type_traits - has_public_assign. This function
will return True, if class has public assign operator.
- declarations.class_t has new property - aliases. This is a list of
all class aliases.
- Bug fixes.
- Documentation has been updated/written/improved.
Attention - this going to be last version that is tested with Python 2.3
New fundamental types has been added
- complex float
- complex double
- complex long double
Attention - non backward compatible change
declarations.filtering.user_defined and declarations.filtering.by_location
implementation has been changed. In previous version of those functions,
decls list has been changed in place. This was wrong behavior. Now,
those functions will return new list, which contains all desired declarations.
Few new type traits has been added
- type_traits.has_destructor
- type_traits.has_public_destructor
- type_traits.has_public_constructor
- type_traits.is_noncopyable
decl_printer_t class and print_declarations function have been added.
Now you can print in a nice way your declaration tree or part of it.
Thanks to Allen Bierbaum!
New class declarations.decl_factory_t has been added. This is a default
factory for all declarations. From now all relevant parser classes takes as
input instance of this class or Null. In case of Null instance of
declarations.decl_factory_t will be created. Using this class you can
easily extend functionality provided by built-in declarations.
Sometimes, there is a need to find a declaration that match some criteria.
The was such functionality in pygccxml, but it was too limited. This
release fix the situation. pygccxml adds a set of classes that will help
you to deal with this problem.
New cache - parser.directory_cache_t has been implemented.
parser.directory_cache_t uses individual files stored in a dedicated
cache directory to store the cached contents.
Thanks to Matthias Baas!
parser.file_cache_t has been improved a lot.
Thanks to Allen Bierbaum!
New file configuration is available: "cached source file".
parser.project_reader_t class will check for existence of GCC-XML
generated file. If it does not exist it will create one. If it do exist,
then the parser will use that file.
Few helper functions has been added in order to make construction of
configuration file to be as easy as possible:
- parser.create_text_fc - creates file configuration, that contains text
- parser.create_source_fc - creates file configuration, that contains
reference to regular source file
- parser.create_gccxml_fc - creates file configuration, that contains
reference to GCC-XML generated file
- parser.create_cached_source_fc - creates file configuration, that
contains reference to 2 files: GCC-XML generated file and regular source
file
Small bug fixes.
Documentation. Allen Bierbaum and Matthias Baas contributed so much in this
area. Almost every public function/class has now documentation string.
Logging functionality has been added. pygccxml creates new logger
"pygccxml". Now it is possible to see what pygccxml is doing right now.
I am sure I forgot something.
- New functions:
- type_traits.is_void_pointer
- type_traits.array_size
- type_traits.array_item_type
- Class declarations.variable_t has new property - bit_fields
- Now it is possible to specify "undefined" directives using
parser.config_t class.
- patch functionality has been introduced. GCC-XML generates wrong
default values for function arguments. patch functionality tries to fix
this.
- Small bug fixes
- Small bug has been fixed.
New functions:
- type_traits.remove_pointer
- type_traits.base_type
- type_traits.is_convertible
A lot of small bug fixes.
Few English mistakes have been fixed.
Attention!
There are 2 none backward compatible changes:
- class with name compaund_t has been renamed to compound_t
- word pathes has been replaced with paths
There are new properties on
- declarations.declaration_t.top_parent
- declarations.class_t.recursive_bases returns all base classes of the
class
- declarations.class_t.recursive_derived returns all derived classes of
the class
- member_calldef_t.access_type
New type has been introduced: unknown_t. There are use cases when
GCC-XML does not returns function return type.
New implementation of make_flatten algorithm using generators.
By default old implementation will be used.
parser.file_configuration_t interface has been changed. Now it is able
to keep: source file, text or GCC-XML generated file. If you are doing
something with code that is not changing you'd better use GCC-XML
generated file as content of the parser.file_configuration_t. Save your
time.
There are some cases when GCC-XML reports "restricted". In this case
pygccxml replaces "restricted" with "volatile".