From b162aee497ef9be3730f59bb0c9d974171bfebee Mon Sep 17 00:00:00 2001 From: NRK Date: Thu, 16 Jun 2022 13:39:03 +0600 Subject: sort and group includes * includes are sorted alphabetically * their grouping and layout is the following: - nsxiv.h will be the first include - followed by any internal headers (e.g "commands.h" "config.h") - followed by system headers ( etc) - followed by third party headers (X.h libwebp etc) * also add `llvm-include-order` check to clang-tidy so that it can catch unsorted includes during CI. --- main.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 10f7440..a6c4187 100644 --- a/main.c +++ b/main.c @@ -22,22 +22,23 @@ #include "commands.h" #include "config.h" -#include -#include -#include -#include -#include -#include #include +#include #include -#include #include +#include +#include +#include +#include +#include #include +#include #include #include -#include -#include +#include + #include +#include #define MODMASK(mask) ((mask) & USED_MODMASK) #define BAR_SEP " " -- cgit v1.2.3-54-g00ecf