Skip to content

Commit

Permalink
clang-tidy: sort includes alphabetically
Browse files Browse the repository at this point in the history
Found with llvm-include-order

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Oct 13, 2020
1 parent 3e85fc5 commit b153fe3
Show file tree
Hide file tree
Showing 30 changed files with 195 additions and 195 deletions.
8 changes: 4 additions & 4 deletions asc2log.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@
*
*/

#include <libgen.h>
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <libgen.h>
#include <unistd.h>
#include <stdlib.h>
#include <locale.h>

#include <net/if.h>
#include <linux/can.h>
#include <linux/can/error.h>
#include <net/if.h>

#include "lib.h"

Expand Down
16 changes: 8 additions & 8 deletions bcmserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@
*
*/

#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>

#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/wait.h>

#include <linux/can.h>
#include <linux/can/bcm.h>
Expand Down
4 changes: 2 additions & 2 deletions can-calc-bit-timing.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

#include <errno.h>
#include <getopt.h>
#include <libgen.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include <string.h>

#include <linux/types.h>
#include <linux/can/netlink.h>
#include <linux/types.h>

/* imported from kernel */

Expand Down
14 changes: 7 additions & 7 deletions canbusload.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,21 @@
*
*/

#include <ctype.h>
#include <libgen.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <unistd.h>

#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>

#include <linux/can.h>
#include <linux/can/raw.h>
Expand Down
18 changes: 9 additions & 9 deletions candump.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
*
*/

#include <ctype.h>
#include <errno.h>
#include <libgen.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>

#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>

#include <linux/can.h>
#include <linux/can/raw.h>
Expand Down
24 changes: 12 additions & 12 deletions canfdtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
* Send feedback to <[email protected]>
*/

#include <errno.h>
#include <getopt.h>
#include <libgen.h>
#include <limits.h>
#include <sched.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <libgen.h>
#include <getopt.h>
#include <time.h>
#include <sched.h>
#include <limits.h>
#include <errno.h>
#include <stdint.h>
#include <unistd.h>

#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>

#include <linux/can.h>
#include <linux/can/raw.h>
Expand Down
8 changes: 4 additions & 4 deletions canframelen.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
*/

#include "canframelen.h"
#include <stdint.h>
#include <stddef.h>
#include <arpa/inet.h>
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include <arpa/inet.h>

/**
* Functions and types for CRC checks.
Expand Down
22 changes: 11 additions & 11 deletions cangen.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,28 @@
*
*/

#include <ctype.h>
#include <errno.h>
#include <libgen.h>
#include <poll.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <poll.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>

#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>

#include "lib.h"
#include <linux/can.h>
#include <linux/can/raw.h>
#include "lib.h"

#define DEFAULT_GAP 200 /* ms */
#define DEFAULT_BURST_COUNT 1
Expand Down
14 changes: 7 additions & 7 deletions cangw.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
*
*/

#include <errno.h>
#include <libgen.h>
#include <linux/can/gw.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <net/if.h>
#include <stdio.h>
#include <stdlib.h>
#include <libgen.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <net/if.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/can/gw.h>
#include <unistd.h>

enum {
UNSPEC,
Expand Down
20 changes: 10 additions & 10 deletions canlogserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@
*
*/

#include <ctype.h>
#include <libgen.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <unistd.h>

#include <net/if.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/wait.h>

#include <errno.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <linux/sockios.h>
#include <signal.h>
#include <errno.h>

#include "lib.h"

Expand Down
10 changes: 5 additions & 5 deletions canplayer.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@
*
*/

#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <libgen.h>
#include <stdlib.h>
#include <unistd.h>

#include <linux/can.h>
#include <linux/can/raw.h>
#include <net/if.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <linux/can.h>
#include <linux/can/raw.h>

#include "lib.h"

Expand Down
22 changes: 11 additions & 11 deletions cansniffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@
*
*/

#include <ctype.h>
#include <fcntl.h>
#include <libgen.h>
#include <signal.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <signal.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <unistd.h>

#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
#include <net/if.h>

#include <linux/can.h>
#include <linux/can/raw.h>
Expand Down
12 changes: 6 additions & 6 deletions isotpdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,23 @@
*
*/

#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#include <time.h>
#include <strings.h>
#include <time.h>
#include <unistd.h>

#include <net/if.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/types.h>

#include "terminal.h"
#include <linux/can.h>
#include <linux/can/raw.h>
#include <linux/sockios.h>
#include "terminal.h"

#define NO_CAN_ID 0xFFFFFFFFU

Expand Down
Loading

0 comments on commit b153fe3

Please sign in to comment.