diff options
| -rw-r--r-- | .clang-format | 5 | ||||
| -rw-r--r-- | examples/fizzbuzz.c | 2 | ||||
| -rw-r--r-- | examples/hello.c | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 35dc112..121ae98 100644 --- a/.clang-format +++ b/.clang-format @@ -9,6 +9,11 @@ AlignTrailingComments: false AllowShortFunctionsOnASingleLine: None BreakStringLiterals: false ColumnLimit: 120 +IncludeCategories: + - Regex: '<.+>' + Priority: 1 + - Regex: '.*' + Priority: 2 IndentWidth: 4 KeepEmptyLines: AtStartOfBlock: false diff --git a/examples/fizzbuzz.c b/examples/fizzbuzz.c index c24ce89..7ff9f36 100644 --- a/examples/fizzbuzz.c +++ b/examples/fizzbuzz.c @@ -1,4 +1,4 @@ -int printf(const char*, ...); +#include <stdio.h> int main() { for (int i = 1; i <= 100; i++) { diff --git a/examples/hello.c b/examples/hello.c index 5dce624..a8cb1ec 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -1,4 +1,4 @@ -int printf(const char*, ...); +#include <stdio.h> int main() { printf("Hello, World!\n"); |
