Commit 77bc466b authored by DUFAY Arthur's avatar DUFAY Arthur

mrf conventions

parent 6fb43598
MRF coding conventions
void func(TYPE const & name_variable) instead of void func(const TYPE & name_variable)
\ No newline at end of file
Variables:
int variable;
int a_variable_with_multiple_words;
Functions:
void function();
void functionWithMultipleWords();
Const variables:
void func(TYPE const & name_variable) instead of void func(const TYPE & name_variable)
Attributes and classes:
class Test
{
public:
void aMethod();
void aMethodWithMultipleWords();
private:
int _a;
int _another_attribute;
}
File inclusion:
Use #pragma once instead of
#ifndef FILE_H
#define FILE_H
#endif
Indentation:
Install astyle
Use script run_astyle.bat/.sh
Header file:
Start each header file with
/*
*
* author : Romain Pacanowski @ institutoptique.fr
* Copyright CNRS 2016
* Copyright CNRS 2017
*
**/
#pragma once
#include "mrf/mrf_dll.hpp"
#include "mrf/mrf_types.hpp"
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment