about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--src/logistic.cpp3
2 files changed, 12 insertions, 1 deletions
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 <gsl/gsl_linalg.h>
 #include <gsl/gsl_matrix.h>
 #include <gsl/gsl_multimin.h>
@@ -7,6 +6,8 @@
 #include <math.h>
 #include <stdio.h>
 
+#include "logistic.h"
+
 // I need to bundle all the data that goes to the function to optimze
 // together.
 typedef struct {