From 50b3d59b79f815166afd27deb43d6c2862d3f42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Fri, 19 Sep 2025 10:50:47 +0200 Subject: [PATCH] Correct include order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix include file order: local → OPM modules → external → system headers last --- CONTRIBUTING.md | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c5d9ecbabb..25bf639dd5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -97,29 +97,29 @@ This ensures your functional changes aren't obscured by formatting changes elsew Organize `#include` directives in the following order, with blank lines between groups: -1. **System headers** (C standard library, C++ STL): +1. **Local OPM headers** (from this module): ```cpp - #include - #include - #include + #include + #include ``` -2. **External library headers** (Dune, etc.): - ```cpp - #include - #include - ``` - -3. **OPM headers from other modules**: +2. **OPM headers from other modules**: ```cpp #include #include ``` -4. **Local OPM headers** (from this module): +3. **External library headers** (Dune, etc.): ```cpp - #include - #include + #include + #include + ``` + +4. **System headers** (C standard library, C++ STL): + ```cpp + #include + #include + #include ``` Within each group, maintain **alphabetical order**.