[gjs: 6/18] lint: Preserve include blocks with clang-format



commit 53011a0dc74669e305a590a227513cd6aeafd556
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Nov 23 23:11:49 2019 -0800

    lint: Preserve include blocks with clang-format
    
    In newer versions of clang-format the default seems to be to merge
    include blocks together. We only want clang-format to sort the includes
    within one block.

 .clang-format | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/.clang-format b/.clang-format
index e80eb0c0..e0a5c46b 100644
--- a/.clang-format
+++ b/.clang-format
@@ -11,6 +11,7 @@ AllowShortLoopsOnASingleLine: false
 CommentPragmas: '^ NOLINT'
 DerivePointerAlignment: false
 ForEachMacros: []
+IncludeBlocks: Preserve
 IndentPPDirectives: AfterHash
 IndentWidth: 4
 MacroBlockBegin: "^JSNATIVE_TEST_FUNC_BEGIN$"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]