Recent Releases of pygccxml

pygccxml - v2.6.1

What's Changed

  • changelog: add missing entry by @iMichka in https://github.com/CastXML/pygccxml/pull/214
  • tests: fix compilation with c++14/17 by @iMichka in https://github.com/CastXML/pygccxml/pull/216
  • ci: move to macos13 by @iMichka in https://github.com/CastXML/pygccxml/pull/217
  • type-traits: fix string equivalences by @iMichka in https://github.com/CastXML/pygccxml/pull/219
  • tests: fix macos test by @iMichka in https://github.com/CastXML/pygccxml/pull/218
  • Bump version to 2.6.1 by @iMichka in https://github.com/CastXML/pygccxml/pull/220

Full Changelog: https://github.com/CastXML/pygccxml/compare/v2.6.0...v2.6.1

- Python
Published by iMichka about 1 year ago

pygccxml - v2.6.0

What's Changed

  • cleanup: remove old code related to gccxml by @iMichka in https://github.com/CastXML/pygccxml/pull/178
  • Use shutil.which() to get compiler path by @mgorny in https://github.com/CastXML/pygccxml/pull/179
  • Tests: move first test to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/183
  • Tests: move test_utils by @iMichka in https://github.com/CastXML/pygccxml/pull/184
  • Tests: move more tests by @iMichka in https://github.com/CastXML/pygccxml/pull/185
  • Test: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/186
  • Tests: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/187
  • Tests: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/188
  • Tests: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/189
  • Tests: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/190
  • Fix CastXML pre-compiled binaries link by @justanotheranonymoususer in https://github.com/CastXML/pygccxml/pull/191
  • calldef attributes: align to bool type by @iMichka in https://github.com/CastXML/pygccxml/pull/192
  • Tests: move core tests to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/193
  • scanner.py: add support for "original_type" attribute of "Argument" XML tag by @pdatkinson in https://github.com/CastXML/pygccxml/pull/194
  • Test: move another batch to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/195
  • workflow: don't run tests twice in pull requests by @iMichka in https://github.com/CastXML/pygccxml/pull/196
  • Test: move another batch of tests to to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/198
  • Test: move another batch of tests to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/199
  • Test: move another batch of tests to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/200
  • Test: move last batch of tests to pytest by @iMichka in https://github.com/CastXML/pygccxml/pull/201
  • Tests: move data folder by @iMichka in https://github.com/CastXML/pygccxml/pull/202
  • Tests: remove legacy unittest folder by @iMichka in https://github.com/CastXML/pygccxml/pull/203
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/204
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/206
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/207
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/208
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/209
  • tests: refactor / simplify by @iMichka in https://github.com/CastXML/pygccxml/pull/210
  • utils: drop is_str by @iMichka in https://github.com/CastXML/pygccxml/pull/212
  • tests: cleanup version check by @iMichka in https://github.com/CastXML/pygccxml/pull/211
  • Bump version to 2.6.0 by @iMichka in https://github.com/CastXML/pygccxml/pull/213

New Contributors

  • @justanotheranonymoususer made their first contribution in https://github.com/CastXML/pygccxml/pull/191
  • @pdatkinson made their first contribution in https://github.com/CastXML/pygccxml/pull/194

Full Changelog: https://github.com/CastXML/pygccxml/compare/v2.5.0...v2.6.0

- Python
Published by iMichka over 1 year ago

pygccxml - v2.5.0

What's Changed

  • Test: remove broken tests by @iMichka in https://github.com/CastXML/pygccxml/pull/167
  • Deprecate utils.is_str by @iMichka in https://github.com/CastXML/pygccxml/pull/168
  • Utils: drop findxmlgeneratorforlegacypython by @iMichka in https://github.com/CastXML/pygccxml/pull/169
  • Utils: add support for new c++ versions by @iMichka in https://github.com/CastXML/pygccxml/pull/170
  • tests: remove codecov by @iMichka in https://github.com/CastXML/pygccxml/pull/175
  • ci: explicitly specify macos runner version by @thewtex in https://github.com/CastXML/pygccxml/pull/174
  • Build: pyproject.xml fixes by @mgorny in https://github.com/CastXML/pygccxml/pull/171
  • Bump version 2.5.0 by @iMichka in https://github.com/CastXML/pygccxml/pull/176
  • Merge develop into master by @iMichka in https://github.com/CastXML/pygccxml/pull/177

New Contributors

  • @mgorny made their first contribution in https://github.com/CastXML/pygccxml/pull/171

Full Changelog: https://github.com/CastXML/pygccxml/compare/v2.4.0...v2.5.0

- Python
Published by iMichka almost 2 years ago

pygccxml - v2.4.0

  1. Drop support for Python 3.6

  2. Add official support for Python 3.9, Python 3.10, Python 3.11

  3. Replace setup.py by pyproject.toml

- Python
Published by iMichka over 2 years ago

pygccxml - v2.3.0

  1. Drop support for Python 3.5

  2. Make type equivalence check for string and ostream more robust (is_std_string, is_std_wstring, is_std_ostream, is_std_wostream)

  3. Skip GCC's _valist fields on AArch644

  4. Add searchpath arg to `findxml_generator

  5. Publish pygccxml as source distribution too

- Python
Published by iMichka over 2 years ago

pygccxml - v2.2.1

  1. Fix issue introduced by 2.2.0 where cflags are not passed to config objects properly.

- Python
Published by tao558 over 4 years ago

pygccxml - v2.2.0

  1. Add ccflags config parameter. Castxml removes any definitions of its pre-defined macros (e.g. -fopenmp). The ccflags option allows users to override this behavior.

  2. Add an example jupyter notebook for binder

  3. Add declaration object for deprecation message

  4. Update release documentation

- Python
Published by tao558 over 4 years ago

pygccxml - v2.1.0

  1. create_temp_file_name: remove deprecated dir argument

  2. Warn if "include directories" do not exist.

  3. Use "overrides" information from CastXML

  4. Add comment parsing from CastXML

- Python
Published by iMichka about 5 years ago

pygccxml - v2.0.1

  1. Minor description and doc updates for release uploads

- Python
Published by iMichka over 5 years ago

pygccxml - v2.0.0

  1. Drop support for GCC-XML.
  • Drop all the demangled name attributes

  • Drop declarations.classt.USEDEMANGLEDASNAME

  1. Drop support for Python 2.6, Python 2.7, Python 3.2, Python 3.3, Python 3.4.

  2. Add support for Python 3.5, Python 3.6, Python 3.7, Python 3.8.

  3. Deprecated all the i_depend_on_them methods from the declaration_t class hierarchy. Instead of using decl.i_depend_on_them(), please use the declarations.get_dependencies_from_decl(decl) function from the declarations module, which returns the same result.

  4. Add support for -std=c++17 and -std=c++2a flags

  5. Add g++ and gcc to better support gnu compilers on windows

- Python
Published by iMichka over 5 years ago

pygccxml -

  1. Fix bug in the find_noncopyable_vars method which wrongly returned member variables of pointer type (#84)

  2. Fix bug in the smart_pointer_traits.value_type and auto_pointer_traits.value_type methods which didn't find the expected value_type declaration (#85)

  3. Fix bug in the smart_pointer_traits.is_smart_pointer and auto_pointer_traits.is_smart_pointer methods which didn't properly work (#85)

- Python
Published by iMichka over 8 years ago

pygccxml -

  1. Support for ellipsis was added.

Warning: this feature introduce backward compatibility problem!

Description:

.. code-block:: c++

  void do_smth( int, ... )

Before this change, pygccxml would report that the function do_smth has only one argument.

After this change, pygccxml will report that the function has two arguments. The second argument type will be declarations.ellipsis_t. All classes, which describe callables, have new property has_ellipsis. It the value of the property is True, than the function has ellipsis in its definition.

  1. New experimental back-end, based on .pdb (progam database file), was added.

  2. New high-level API wrapper for .bsc (browse source code file) was added.

  3. The recomended GCCXML version to use with this release is CVS revision 123. This revision introduces small, but very important feature. GCCXML started to dump artificial declarations (constructor, destructor, operator=). pygccxml.declarations.type_traits functions were updated to use the new information.

  4. declarations.decl_printer_t class dumps almost all available information about a declaration.

  5. declarations.is_same_function was fixed and now it treats "covariant returns" right.

  6. Search algorithm was improved for template instantiated classes. From now, a spaces within the class name doesn't matter.

  7. pygccxml unit tests functionality was improved. Many thanks to Gustavo Carneiro.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. bsc and mspdb packages were deprecated

  2. Adding new functionality and improving initial environment handling

  3. Adding ability to dump exported classes

  4. Added more tests

  5. Add handling for "C" functions

  6. Fix bug "pygccxml parses const volatile variable args as just const"

  7. Rename bparser to binary_parsers

  8. Adding .so file parser

  9. Replace md5 with hashlib module (removes deprecation warnings)

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Fix small bug in matcher - don't match namespaces by their location

  2. Documentation update and cleanup. (using sphinx-doc now).

  3. Fixing small bug on Windows, related to parsing configuration file

  4. Update setup.py

  5. fix 2779781 bug( pygccxml reverses array dimensions )

- Python
Published by iMichka almost 9 years ago

pygccxml -

  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

- Python
Published by iMichka almost 9 years ago

pygccxml -

  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

  4. workaround for problem with boost >=1.54

  5. Simpler way of checksumming files in a python 2 and 3 compatible way

  6. Prevent warnings to be treated as fatal errors in py++

  7. "hasinline" property was added to ``declarations.calldeft`` class.

  8. Thanks to Aron Xu, for pointing out that it is better to use "os.name", instead of "sys.platform" for platform specific logic.

  9. "int128_t" and "uint128_t" types were introduced. Many thanks to Gustavo Carneiro for providing the patch.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  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.configt (replaced by parser.gccxmlconfiguration_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.

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

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

  3. Use new style python decorators (@property) everywhere

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

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

- Python
Published by iMichka almost 9 years ago

pygccxml -

  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.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Use setuptools instead of distutils for the packaging

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

- Python
Published by iMichka almost 9 years ago

pygccxml -

  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.

  1. [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()
  1. [CastXML] When using the configuration, you will need to tell pygccxml which xml generator you are using.

    .. code-block:: python

    xmlgeneratorconfig = parser.xmlgeneratorconfigurationt( xmlgeneratorpath=generatorpath, xmlgenerator=generatorname, )

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.

  1. [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.

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

These fields are: gp_offset, fp_offset, overflow_arg_area, reg_save_area

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

Getting the mangled attribute on a declaration will fail.

  1. [CastXML] Demangled names are not available.

Getting a demangled name will fail.

  1. [CastXML] Add new container traits:

unordered maps, unordered sets, multimaps, multisets

  1. [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.

  1. [CastXML] Disabled relinking of:

    .. code-block:: python

    rebindstd::__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.

  1. [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.

  1. [Misc] declarations.has_trivial_copy was defintevely removed.

Please use declarations.has_copy_constructor.

This was deprecated since version 0.9.5.

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

Please use cxx_parser instead.

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

Please use a normal RuntimeError instead.

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

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

  1. [Misc] Add quantifiedcode check

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

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

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

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

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

  5. [Tests] Add new test for the contains_parent_dir function.

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

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

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

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

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Remove the _valist_tag declaration from the tree when parsing with CastXML

The _valist_tag declarations are internal declarations, which are often not needed. They are for example polluting the declarations tree when running pyplusplus.

This is optional but on by default. To still load the _valist_tag declarations in the tree, a config flag can be set like this: config.flags = ["f1"], or by passing the flags=["f1"] argument the config setup.

  1. Some code cleanup

  2. Build new package for pypi. The 1.7.0 upload has gone wrong ...

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Fix exception in iscopyconstructor when the constructor's argument was a typedef. iscopyconstructor will now return False instead of failing. See issue #27.

  2. Fix bug with utils.xml_generator being unset when reading cached file. This could for example happen when reading a cached file from a second python interpreter (e.g. in a subprocess or by calling pygccxml multiple times from a script). See issue #27.

  3. SafeConfigParser is throwing a deprecation warning in python 3.2 and newer. Use ConfigParser instead. Thanks to Mark Moll for the patch.

  4. Add support for cflags property in config files. Thanks to Mark Moll for the patch.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Addition of an isunion() method in the typetraits module.

  2. typetraits.smartpointertraits will now classify std::sharedptr as a smart pointer (only boost::shared_ptr was recognized before)

  3. Fix a regression in undnamecreatort.format_argtypes

  4. C++xx flags are now correctly passed to CastXML. Allowed flags are: "-std=c++98", "-std=c++03", "-std=c++11", "-std=c++14", "-std=c++1z" Thanks to Mark Moll for the fix.

  5. Add better support for "typedef (class|struct) {} foo;" syntax when using CastXML. GCCXML did not recognize the typedef. Fetching these declarations can now be done with: .typedef("foo") or .class_("foo").

  6. Add support for the future llvm 3.9. As in release v1.7.1, new structs and typedefs are now exposed by llvm, which broke pyplusplus. In this case these are __NSConstantString_tag and __NSConstantString. The two declarations are now hidden from the declarations tree, but can still be generated by using the config.flags = ["f1"] option.

  7. Multiple fixes to adapt default arguments in functions for py++. Using the latest version of CastXML is recommended. This makes sure default arguments for function parameters are correctly defined, so that py++ can process them.

  8. Fix for exception when using castxml + gcc5 + std=c++11 and maps.

  9. Removed unittest2 dependency for testing with python 2.6

  10. Testing: test with std::tr1 unordered containers for gcc >= 4.4.7 and castxml

  11. Cosmetic fix for generator name printed to stdout when launching unit tests

  12. Fix simple typo in example.py comment

Thanks to the following people for their contribution to this release: Mark Moll, Ashish Sadanandan, Mark Oates

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. CV-qualified arrays were not being handled correctly by type traits manipulations functions. For instance, 'int const[N]' would not be detected as 'const'. Similar problems existed for volatile qualified arrays too. See #35 for more details. A newer version of CastXML is recommended (xml output version >= 1.138)

  2. Close subprocess stdout stream once value has been read. Fixes some warnings under python3.

  3. Since this release, pyggcxml's version numbers do not contain the v prefix anymore. This was breaking distribution on PyPI (pypi.python.org).

  4. The documentation is now at http://pygccxml.readthedocs.io/

Thanks to the following people for their contribution to this release: Ashish Sadanandan

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Improve error message when no castxml or gccxml is found.

  2. Fix compilation of tests with c++11.

  3. Fix patching of enums in default arguments for C++03.

  4. Version numbers are still tagged with the v prefix (1.7.4 was correctly tagged), as this is recommended by GitHub. The version number in the init.py and setup.py files are without v prefix, because this is what pip requires.

Thanks to the following people for their contribution to this release: Ashish Sadanandan

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Fix problem with argument without names when building declaration string (#55)

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. CastXML is now the default XML generator (instead of GCCXML) find_xml_generator will now look for CastXML first too.

  2. Do not allow to use the GCCXML provided by newer gccxml debian packages. It is a wrapper around CastXML which can confuse pygccxml. You should use the castxml package and the CastXML binary instead. If you really want to use gccxml, the gccxml.real binary from the gccxml debian package can still be used.

  3. Fix parsing of boost/locale.hpp code. Templated class instantiations with specializations are now better supported, specifically when containing parentheses: myClass<std::vector<char>(const std::string &, const std::string &)> obj;

  4. When using the remove_pointer function on a function pointer, the remove_pointer function now correctly returns a calldef_type_t.

  5. declarations.is_string, declarations.is_std_wstring, declarations.is_std_ostream and declarations.is_std_wostream now correctly work when a the type is also a reference. Example: declarations.is_string returned false for typedef std::string& x3;; it will return true now.

  6. General code style overhaul (with the help of quantifiedcode.com)

  7. Added a bunch of new examples and documentation update and cleanup

  8. [Removals] Remove compiler attribute in declarations.py and gccxml_path from config.py These were deprecated in pygccxml v1.7.0, and definitively removed for v1.8.0

  9. [Deprecations]

    • The binary_parsers module was deprecated. It seems that this module is not used by other third-party projects, at least a quick search on GitHub did not give any interesting usage. Also, this code is not tested, and there seem to be some undefined variables, so it is highly probable that this module is not working anyway. I do not want to put much efforts in maintaining this module, but concentrate on improving pygccxml's core features. If somebody wants to revive this module it can still be done in a separate project. Thus, the 3 following functions are now deprecated and will be removed in pygccxml 1.9.0: merge_information, undecorate_blob and format_decl. The undname_creator_t class is also deprecated for the same reason.
  • A bunch of attributes and methods were deprecated. They will throw a warning when used with pygccxml 1.8.0, and will be removed in version 1.9.0.

    • In class_declaration_t and class_t:
      • decl.containertraits attribute => declarations.findcontainer_traits(decl)
    • In class_t
      • decl.findnoncopyablevars() method => declarations.findnoncopyablevars(decl)
      • decl.findcopyconstructor() method => declarations.findcopyconstructor(decl)
      • decl.hasvtable argument => declarations.hasvtable(decl)
    • In constructor_t
      • ctor.iscopyconstructor attribute => declarations.iscopyconstructor(ctor)
      • ctor.istrivialconstructor attribute => declarations.istrivialconstructor(ctor)
    • Deprecate the ns() method. The namespace() method can be used instead.
    • Deprecate etree_scanner_t and etree_saxifier_t classes. The most efficient xml scanner class is the ietree_scanner_t class, which is the one used since many years now.
    • The [gccxml] section used in the configuration file is now deprecated. Please use [xml_generator] instead.
  • native_compiler and enum classes from the utils module. These were not used in pygccxml, and can easily be implemented in your own project if you need and equivalent

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Added is_struct function to declarations package. It returns true if a declaration is a struct.

  2. Removed * from decl_string when type is a function pointer (#61)

  3. Update travis.yml for newer OS X images. Update CastXML binaries for Travis.

  4. Fix regression in directorycache, which was crashing due an unset variable. Add support for python3 in directorycache.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. xml_generator_configuration_t will no more try to find castxml or gccxml. You can use utils.find_xml_generator to help you finding the path to the xml generator, or set it manually. It is now mandatory to pass a valid xml_generator and xml_generator_path to the configuration (#65).

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Single-source the version number to prevent version numbers mismatches. Release 1.8.2 contained a wrong version number in its download url on pypi.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Include paths read from configuration files on windows are now normed and passed between quotation marks. This makes pygccxml more robust when used on Windows (with paths containing whitespaces).

  2. Closed cache file handle, which would not be closed in case of an exception (warning thrown by Python 2.7.13)

  3. Always call wait() on subprocesses before closing stdout/stderr streams. Detected by Python 3.6. Fixes the following warning: ResourceWarning: subprocess xxxxx is still running

  4. Fix deprecation warnings thrown by ConfigParser when using pygccxml with python 2.7.13. Fix the usage of pygccxml with python 3.6.

  5. Updated travis setup to python 3.6 for OS X.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Fix multiple calls to __hash__() (#70)

  2. Static and extern qualifiers are now no more treated as equivalents in the type_qualifiers class (for CastXML). The old behaviour is kept for GCC-XML (static == extern).

  3. Fix for declarations.is_noncopyable when used on a pointer_t.

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. Fix HASTR1=0 definition for msvc9 (#72)

  2. Fix possible infinite recursion in find_noncopyable_vars() (#71)

- Python
Published by iMichka almost 9 years ago

pygccxml -

  1. [New features]
  • Full Python 3.6 support

  • Full pypy and pypy3 support

  • Better windows support

  • Small performance improvements

  • Added is_struct function to declarations package. It returns true if a declaration is a struct.

  • Added support for the castxml epic version format 1. This is a new format which is partially not backward compatible with the legacy format. To use this new format, use the castxml_epic_version flag and set it to 1. This new format will allow to support new c++ features that were not recognized by gccxml and previous versions of castxml.

  • Added support for elaborated type specifiers. A new elaborated_t type was added, with the related is_elaborated and remove_elaborated function. This is only available when setting the castxml_epic_version flag to 1 .

  1. [Windows]
  • Add Appveyor Windows build (castxml, VS 2013, python 3.5) and merge coverage results with Travis.

  • Attributes defined as __thiscall__ are now ignored (tested with VS 2013). The __thiscall__ in some attributes will be removed too. If you still want to have access to these attributes, you can use the config.flags = ["f2"] option.

  1. [Deprecations]
  • Deprecated decl attribute from dependency_info_t. Use the declaration attribute instead.

  • Deprecated the nss, free_fun and free_funs methods from the namespace_t class. Use the namespaces, free_function and free_functions methods instead.

  • Deprecated the mem_fun, mem_funs, mem_oper, mem_opers, enum and enums methods from the scopedef_t class. Use the member_function, member_functions, member_operator, member_operators, enumeration and enumerations methods instead.

  • Deprecated the mdecl_wrapper_t.to_list(). You can implement your own version of it if you really need it.

  • Deprecated the declaration_not_found_t and multiple_declarations_found_t attributes from the scopedef_t class. These exceptions are available through the pygccxml.declarations package.

  • Deprecated the decorated_name attribute from declaration_t. This was used by the binary parser, which have been removed in this version. As these attributes still could be used somewhere (but always returned None anyway), they need to go through a deprecation cycle first.

  1. [Removals]
  • Removed utils.xml_generator and utils.xml_output_version attributes. These two variables should not have made it into the public API. There is no deprecation cycle for these because of the complexity of keeping these module attributes around.

- Python
Published by iMichka almost 9 years ago