1BasedOnStyle: InheritParentConfig 2SortIncludes: true 3IncludeBlocks: Regroup 4IncludeCategories: 5 # Implicitly the corresponding header for the C file has Priority 0 6 # C Standard Library Headers 7 - Regex: '^<(assert|complex|ctype|errno|fenv|float|inttypes|iso646|limits|locale|math|setjmp|signal|stdalign|stdarg|stdatomic|stdbool|stddef|stdint|stdio|stdlib|stdnoreturn|string|tgmath|threads|time|uchar|wchar|wctype)\.h>' 8 Priority: 1 9 # OS/System-Specific Headers (directories) 10 - Regex: '^<(sys|linux|asm|arpa|net|netinet|x86_64|machine)/.*>' 11 Priority: 2 12 # OS/System-Specific Headers (POSIX/System flat headers) 13 - Regex: '^<(unistd|pthread|fcntl|dirent|dlfcn|poll|sched|semaphore|spawn|syslog|termios|pwd|grp|netdb|sysexits|err|paths|pty|utmp|resolv|ifaddrs|elf|libelf|gelf)\.h>' 14 Priority: 2 15 # Third-Party Library Headers 16 - Regex: '^<.*>' 17 Priority: 3 18 # Your Project's Other Headers 19 - Regex: '^".*"' 20 Priority: 4 21