You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (JIRA)" <ji...@apache.org> on 2016/10/06 15:06:20 UTC
[jira] [Created] (MESOS-6320) Implement clang-tidy check to catch
incorrect flags hierarchies
Benjamin Bannier created MESOS-6320:
---------------------------------------
Summary: Implement clang-tidy check to catch incorrect flags hierarchies
Key: MESOS-6320
URL: https://issues.apache.org/jira/browse/MESOS-6320
Project: Mesos
Issue Type: Bug
Reporter: Benjamin Bannier
Classes need to always use {{virtual}} inheritance when being derived from {{FlagsBase}}. Also, in order to compose such derived flags they should be inherited virtually again.
Some examples:
{code}
struct A : virtual FlagsBase {}; // OK
struct B : FlagsBase {}; // ERROR
struct C : A {}; // ERROR
{code}
We should implement a clang-tidy checker to catch such wrong inheritance issues.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)