Skip to content

Standards and Style Guide

c-bebop edited this page Sep 11, 2015 · 1 revision

We use the

Joint Strike Fighter - Air Vehicle - C++ Coding Standards for the System Development and Demonstration Program (Document Number 2RDU00001 Rev C) Style Guide

for all C++ implementations.

Additional Standards

Namespace

Own implementations shall be placed in the SSR namespace:

namespace SSR {
  //Class, Function etc.
}

Initialization Lists

Initialization Lists shall be formatted as follows:

Class::Class(...)
 : member1(value)
 , member2(value)
 , member3(value)
{
   //Constructor code
}

This makes it more easy to add new initialization list elements and consistent look.

Inheritance

class Class
 : public Inherit1
 , public Inherit2
 , public Inherit3
{
  //Class code
}
Clone this wiki locally