changeset 35:6114710feda7

Add paragraph about code in headers
author David Demelier <markand@malikania.fr>
date Mon, 30 Jul 2018 14:31:58 +0200
parents 3bf129646979
children 54aa8c287f37
files STYLE.md
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/STYLE.md	Mon Jul 30 14:33:58 2018 +0200
+++ b/STYLE.md	Mon Jul 30 14:31:58 2018 +0200
@@ -460,6 +460,13 @@
 }
 ```
 
+### Avoid definitions in headers
+
+Try to avoid as much as possible function definition in header file. It slow
+down compilation because the compiler has to parse the syntax over and over.
+It's even worse as you may need to recompile a lot of files when you change a
+header rather than a source file.
+
 CMake
 =====