From 1e49e7a27d0f4b811a87c64db1e875779766f6b0 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Wed, 2 Aug 2017 09:50:18 +0000 Subject: Added section on contributing and coding style and fixed compilation --- README.md | 10 ++++++++++ src/logistic.cpp | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9a51770..14f5968 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,16 @@ last tested using Eigen version 3.3.3.) More information on source code, dependencies and installation can be found in [INSTALL.md](INSTALL.md). +## Contributing + +GEMMA uses the [LLVM style](http://llvm.org/docs/CodingStandards.html) +for C++ code. You should set your editor to replace tabs with spaces +and 2 spaces of indentation. Use + + clang-format -style=LLVM -i *.cpp *.h + +to validate the coding style. + ## Credits The *GEMMA* software was developed by: diff --git a/src/logistic.cpp b/src/logistic.cpp index 2308de7..2dd0402 100644 --- a/src/logistic.cpp +++ b/src/logistic.cpp @@ -1,4 +1,3 @@ -#include "logistic.h" #include #include #include @@ -7,6 +6,8 @@ #include #include +#include "logistic.h" + // I need to bundle all the data that goes to the function to optimze // together. typedef struct { -- cgit v1.2.3