Pygccxml

Latest version: v2.5.0

Safety actively analyzes 625681 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 8

1.7.0

-------------

1. Added support for CastXML (https://github.com/CastXML/CastXML)

GCCXML is deprecated and does no more work with modern compilers.
CastXML should be used instead.

``pygccxml 1.7.0`` is still compatible with GCCXML and no changes are needed for people working with GCCXML.

2. [CastXML] A new function was introduced to help find which XML generator you are using.

If the generator (GCCXML or CastXML) is in your path, it will be detected.

.. code-block:: python

generator_path, generator_name = pygccxml.utils.find_xml_generator()

3. [CastXML] When using the configuration, you will need to tell pygccxml which xml generator you are using.

.. code-block:: python

xml_generator_config = parser.xml_generator_configuration_t(
xml_generator_path=generator_path,
xml_generator=generator_name,
)

``gccxml_configuration_t`` is an alias of ``xml_generator_configuration_t``.

``load_gccxml_configuration`` is an alias of ``load_xml_generator_configuration``.

Both can still be used but will be deprecated.

4. [CastXML] The compiler path can be passed to castxml.

This is done by using the ``compiler_path`` attribute in the configuration.
Note that this may be important because the resulting xml file is slightly different
depending on the compiler.

5. [CastXML] Added support for some fields which have no location.

These fields are: ``gp_offset``, ``fp_offset``, ``overflow_arg_area``, ``reg_save_area``

6. [CastXML] Mangled names are only available for functions and variables with CastXML.

Getting the mangled attribute on a ``declaration`` will fail.

7. [CastXML] Demangled names are not available.

Getting a demangled name will fail.

8. [CastXML] Add new container traits:

``unordered maps``, ``unordered sets``, ``multimaps``, ``multisets``

9. [CastXML] Annotations:

Instead of using the ``__attribute((gccxml("string")))`` c++ syntax (see version 0.9.5), the ``__attribute__ ((annotate ("out")))`` can now be used to annotate code with CastXML.

10. [CastXML] Disabled relinking of:

.. code-block:: python

rebind<std::__tree_node<std::basic_string<char>, void *> >

This made the ``find_container_traits_tester`` unit tests fail with ``CastXML``.
This class defintion is present in the clang AST tree, but I don't know why it is
usefull. Please tell me if you need it so we can re-enable that featur in pygccxml.

11. [Misc] Deprecated the ``compiler`` attribute and replaced it with a global ``utils.xml_generator`` variable.

The ``compiler`` attribute was misleading; it was sometimes confused with the name and version of the xml generator.

This change also fixes some internal problems with the algorithms cache.

12. [Misc] ``declarations.has_trivial_copy`` was defintevely removed.

Please use ``declarations.has_copy_constructor``.

This was deprecated since version 0.9.5.

13. [Misc] Remove ``gccxml`` logger from logger class (was deprecated).

Please use ``cxx_parser`` instead.

14. [Misc] Removed ``gccxml_runtime_error_t`` class. This was only used internally.

Please use a normal ``RuntimeError`` instead.

15. [Misc] Documentation was moved to readthedocs.org

https://readthedocs.org/projects/pygccxml/

16. [Misc] Add quantifiedcode check

https://www.quantifiedcode.com/app/project/117af14ef32a455fb7b3762e21083fb3

17. [Misc] Add option to keep xml files after errors, which is useful for debugging purposes.

18. [Misc] Fix new pep8 warnings, clean up and simplify some code and comments

19. [Misc] The compiler version debugging message is now hidden (closes 12)

20. [Misc] Print less line separations in ``decl_printer``; this makes the output more compact.

21. [Tests] Add new test for the ``contains_parent_dir`` function.

22. [Tests] Add test for non copyable class with const class

23. [Tests] Add test case for non copyable class due to const array

24. [Doc] Small documentation update, moved people list to credits page, added new examples.

25. [Misc] Add Travis unit tests for Python 3.5

1.6.2

-------------

1. Use setuptools instead of distutils for the packaging

2. Change rights of declarations_cache.py and templates_tester.py
from -rwxr-xr-x+ to -rw-r--r--+, so that all the files have the same
execution rights.

1.6.1

-------------

1. Fix a regression introduced by previous changes. Syntax errors were introduced
in the part were you can check if a class is copyable or not (see 13). These
have been fixed now.

1.6

-----------

1. Moved the repository from mercurial to git

2. Changed the documentation from epydoc to sphinx doc

3. Setup the documentation as gh-page and add script to update the documentation
Just call "make gh-pages" on the root folder to create a commit with the
new documentation, which you may then push to the github repository.
The url for the documentation is now http://gccxml.github.io/pygccxml/

4. Add Travis unit tests for Python 2.6, 2.7, 3.2, 3.3 and 3.4
The tests are run after each commit (see .travis.yml file in root folder)
https://travis-ci.org/gccxml/pygccxml

5. Add automatic code coverage. The code coverage is run during each travis
run and the results are uploaded to https://coveralls.io/r/gccxml/pygccxml

6. Fix copy_constructor unit test

7. Deprecate parser.config_t (replaced by parser.gccxml_configuration_t)

8. Fix for string comparison with future unicode literals
When using from __future__ import unicode_literals in python 2.7,
the call to the namespace() method would fail due to the isinstance/str
check.

A is_str() function was added to the utils module, allowing for a
python 2 and python 3 compatible string check.
A unit test for this case was added.

9. All the code is now pep8 compliant and is tested for this in an unit test

10. Most of unused imports and variables were removed using the pyflakes tool

11. Use new style python decorators (property) everywhere

12. Add new unit test for the example.py file

13. Update the licence headers to reflect the change in maintainers

1.5.2

-------------

1. Make python 3.x compatible. Still works with python 2.6 and python 2.7.

2. Add .dylib parser for Darwin

3. Fix some unit tests

1.5.1

-------------

1. adding problematic use case, contributed by Zbigniew Mandziejewicz

2. Adding "explicit" attribute to constructor_t class

3. "List symbols" (`nm`) utility invocation was improved and now handles
right relative paths and paths with spaces. Many thanks to Alejandro Dubrovsky
for providing the patch.

4. Fix for "get dependencies" functionality

5. Allow the process to continue, even in case the binary parser can not find the relevant declaration

6. Fix bug related to merging free functions

7. Improve decl_printer - sort declarations before printing

8. Added new tests and ported tests to x86_64 architecture

Page 5 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.