From ea95d84aa1eaf212373577df08f0502e72d86cb2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 4 Aug 2017 23:41:16 -0700 Subject: [PATCH] [style-guide] note that openthread/config.h must appear first (#2066) --- STYLE_GUIDE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md index eca349446..51d4696c7 100644 --- a/STYLE_GUIDE.md +++ b/STYLE_GUIDE.md @@ -43,11 +43,13 @@ - Preprocessor `#include` directives shall use brace (“<”) and (“>”) style for all public headers, including C and C++ standard library, or other first- and third-party public library headers. - Preprocessor `#include` directives should use double quote (‘“‘) and (‘“‘) style for all private or relative headers. - Preprocessor `#include` directives should be grouped, ordered, or sorted as follows: - - This compilation unit's corresponding header, if any. + - The `` public header + - This compilation unit's corresponding header, if any - C++ Standard Library headers - C Standard Library headers - Third-party library headers - First-party library headers + - The `"openthread-core-config.h"` private header - Private or local headers - Alphanumeric order within each subgroup - The preprocessor shall not be used to redefine reserved language keywords.