• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

myint / cppclean / 486
96%

Build:
DEFAULT BRANCH: master
Ran 31 Mar 2018 05:00PM UTC
Jobs 6
Files 16
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
486

push

travis-ci

myint
Implement basic support for ctor initializer lists and exporting defines with values (#128)

* Implement preliminary solution to #56 for exporting defines

This change modifies WarningHunter._determine_uses()._add_use() to take
in a full VariableDeclaration object instead of Type. This allows us to
check for the initial_value attribute of a VariableDeclaration object
which may contain a symbol from an included file (e.g. a #define). This
change also exports Define objects in order to capture their value and
check if they are being used.

To fully implement the issue rasied in #56, inline constructor member
initializer lists need to be supported.

* Implement basic support for ctor initializer lists

This change adds basic support for initializing variables (initial_value
attribute of VariableDeclaration) inside ctor initializer lists. It only
supports one parameter for a given member. The ctor must also be inline
defined. In other words, a ctor with its definition outside the class is
not supported. Below is an example of what's supported:

```
class Foo
{
public:
  Foo() :
    foo(1)
  {}

private:
  int foo;
};
```

In this case, the `initial_value` of `foo` is set to `1`.

Whereas, the following is not supported, and will be ignored:

```
class Foo
{
public:
  Foo() :
    bar(1, 2, 3, 4)
  {}

private:
  Bar bar;
};
```

This ctor is defined outside the class, and thus not supported:

```
class Foo
{
public:
  Foo();

private:
  Bar bar;
};

Foo:Foo() :
  bar(1)
{}
```

* Add tests for ctor initializer lists

* Fix travis ci errors

* Fix using explicit python3 type

This fixes the broken build for Python 2.

* Fix inconsistency with usage of local variable

1027 of 1076 branches covered (95.45%)

3221 of 3261 relevant lines covered (98.77%)

5.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 486.1 31 Mar 2018 05:00PM UTC 0
98.59
Travis Job 486.1
2 486.2 31 Mar 2018 05:00PM UTC 0
98.74
Travis Job 486.2
3 486.3 31 Mar 2018 05:00PM UTC 0
98.74
Travis Job 486.3
4 486.4 31 Mar 2018 05:00PM UTC 0
98.77
Travis Job 486.4
5 486.5 31 Mar 2018 05:00PM UTC 0
98.77
Travis Job 486.5
6 486.6 31 Mar 2018 05:02PM UTC 0
98.77
Travis Job 486.6
Source Files on build 486
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #486
  • 9fcab0fe on github
  • Prev Build on master (#485)
  • Next Build on master (#493)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc