From 1bf4da2bfa58b30664b9ab6b705b9fe9f5773707 Mon Sep 17 00:00:00 2001
From: Vassil Vassilev <vvasilev@cern.ch>
Date: Sun, 24 Sep 2017 21:17:19 +0200
Subject: [PATCH] Order includes alphabetically and by generality.

---
 .clang-format | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.clang-format b/.clang-format
index 196a8e48b32..5aceae71b52 100644
--- a/.clang-format
+++ b/.clang-format
@@ -94,3 +94,16 @@ SpacesInSquareBrackets: false
 Standard:        Cpp11
 TabWidth:        3
 UseTab:          Never
+
+# Order alphabetically and by generality the included header files.
+IncludeCategories:
+  - Regex:           '^"[^/]+\"'
+    Priority:        10
+  - Regex:           '^"cling/'
+    Priority:        20
+  - Regex:           '^"clang/'
+    Priority:        30
+  - Regex:           '^"llvm/'
+    Priority:        40
+  - Regex:           '^<'
+    Priority:        50
-- 
GitLab