You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Benjamin Bannier <be...@mesosphere.io> on 2016/12/21 21:07:11 UTC

Review Request 54946: Made sure classes deriving from FlagBase use virtual inheritance.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54946/
-----------------------------------------------------------

Review request for mesos and Michael Park.


Repository: mesos


Description
-------

Classes should always use `virtual` inheritance when inheriting from
`flags::FlagsBase`. In order to create properly composable flags
classes, `virtual` inheritance should be used even for classes
inheriting from classes inheriting from `FlagsBase` or any of their
children.

This change fixes the inheritance for a number of `FlagBase`-based
classes.


Diffs
-----

  src/examples/test_framework.cpp 753b4deb842d2da3a33ec78f5f4f55f406b3b00a 
  src/examples/test_http_framework.cpp 579a0c5521a33edb85afebdcbaff886c4c16f2dc 
  src/slave/main.cpp 8010f8e229e2d820649750c9db0456ecd1b854d3 

Diff: https://reviews.apache.org/r/54946/diff/


Testing
-------

`make check (Fedora 25, default build)`

These instances were found the with the clang-tidy checker posted here, https://github.com/mesos/clang-tools-extra/pull/4.

This commit fixes all instances found under an SSL build on OS X, and an ubuntu-16 build (both SSL, non-SSL).


Thanks,

Benjamin Bannier


Re: Review Request 54946: Made sure classes deriving from FlagBase use virtual inheritance.

Posted by Michael Park <mp...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/54946/#review159895
-----------------------------------------------------------


Ship it!




Ship It!

- Michael Park


On Dec. 21, 2016, 1:07 p.m., Benjamin Bannier wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/54946/
> -----------------------------------------------------------
> 
> (Updated Dec. 21, 2016, 1:07 p.m.)
> 
> 
> Review request for mesos and Michael Park.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Classes should always use `virtual` inheritance when inheriting from
> `flags::FlagsBase`. In order to create properly composable flags
> classes, `virtual` inheritance should be used even for classes
> inheriting from classes inheriting from `FlagsBase` or any of their
> children.
> 
> This change fixes the inheritance for a number of `FlagBase`-based
> classes.
> 
> 
> Diffs
> -----
> 
>   src/examples/test_framework.cpp 753b4deb842d2da3a33ec78f5f4f55f406b3b00a 
>   src/examples/test_http_framework.cpp 579a0c5521a33edb85afebdcbaff886c4c16f2dc 
>   src/slave/main.cpp 8010f8e229e2d820649750c9db0456ecd1b854d3 
> 
> Diff: https://reviews.apache.org/r/54946/diff/
> 
> 
> Testing
> -------
> 
> `make check (Fedora 25, default build)`
> 
> These instances were found the with the clang-tidy checker posted here, https://github.com/mesos/clang-tools-extra/pull/4.
> 
> This commit fixes all instances found under an SSL build on OS X, and an ubuntu-16 build (both SSL, non-SSL).
> 
> 
> Thanks,
> 
> Benjamin Bannier
> 
>