Ran
|
Files
115
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
travis-ci
<a href="https://github.com/gccxml/pygccxml/commit/cb3fe1278">Fix patching of enums in default arguments for C++03 Given the following code namespace ns { enum color {red, green, blue}; void test( color arg=blue ); } CastXML produces a fully qualified name for the default argument - `::ns::color::blue`. While this default argument string is valid for C++11 and later, and indeed required if `color` were a scoped enumeration, the default argument is invalid for C++03 code. Prior to C++11, enumerator names were added to the enclosing scope, so they could not be qualified using the enum-name. Hence, for C++03, the default argument needs to be patched to say `::ns::blue`. Change-Id: I</a><a class="double-link" href="https://github.com/gccxml/pygccxml/commit/72c5d4fc5">72c5d4fc5</a>
8226 of 10202 relevant lines covered (80.63%)
0.81 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|