Ran
|
Files
113
|
Run time
4s
|
Badge
Embed ▾
README BADGES
|
travis-ci
<a href="https://github.com/gccxml/pygccxml/commit/7a8648da6">Fix unqualified enums in default arguments for CastXML CastXML currently doesn't modify enum names used in default arguments for functions, it simply uses the same text present in the source file. This causes compilation failures in bindings generated by pyplusplus in case of code such as the following: namespace ns1 { namespace ns2 { enum color { red }; void foo(color arg = ns2::red); } } In this case, CastXML produces "ns2::red" as the default value while GCCXML removes the namespace name and sets the default value to "red". pygccxml's patcher for unqualified names expects GCCXML's behavior, so it fails to detect the CastXML output as one needing further qualification. Consequently, pyplusplus refers to the default value as "ns2::red", which fails compilation because the name needs to be fully qualified as "ns1::ns2::red". This fix produces the desired qualified output from pygccxml with both GCCXML and CastXML. Change-Id: I</a><a class="double-link" href="https://github.com/gccxml/pygccxml/commit/724408981">724408981</a>
7952 of 9896 relevant lines covered (80.36%)
0.8 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|