[gjs: 8/16] linter: Adjust clang-format rules



commit c1ded8b17c39dae8d4a39780acda67c9726c7ed3
Author: Philip Chimento <philip chimento gmail com>
Date:   Mon Aug 20 21:30:17 2018 -0400

    linter: Adjust clang-format rules
    
    We have several places in the code where the lack of preprocessor
    directive indentation would make it harder to read.

 .clang-format | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/.clang-format b/.clang-format
index e1b30577..bc6649f9 100644
--- a/.clang-format
+++ b/.clang-format
@@ -10,6 +10,7 @@ AllowShortIfStatementsOnASingleLine: false
 AllowShortLoopsOnASingleLine: false
 DerivePointerAlignment: false
 ForEachMacros: []
+IndentPPDirectives: AfterHash
 IndentWidth: 4
 PointerAlignment: Left  # Google style allows both, but clang-format doesn't
 SpacesBeforeTrailingComments: 2


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