summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-02-22 09:46:08 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-03-08 14:35:37 +0000
commitae05b9f9d08210ba07683af975247b87e7fdb014 (patch)
treedb663fd24bae2064ac2f2ed72a19e047b84929d9
parent7c96b24924462078d31012a0d1dd45ccdb9771ed (diff)
clang-format: Enable sorted includes
We aim to ensure that our includes are alphabetically sorted. Whilst checkstyle.py also handles this, enable the clang-format explicitly to define the code-style requirement, and allow clang-format to also correct un-sorted header includes. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--.clang-format2
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format
index 8719683a..3a8a896e 100644
--- a/.clang-format
+++ b/.clang-format
@@ -99,7 +99,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: false
-SortIncludes: false
+SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false