diff --git a/examples/quick-start/.clang-format b/examples/quick-start/.clang-format new file mode 100644 index 0000000..60d597e --- /dev/null +++ b/examples/quick-start/.clang-format @@ -0,0 +1,20 @@ +BasedOnStyle: "InheritParentConfig" + +IncludeCategories: + # NOTE: A header is grouped by first matching regex + # Project headers + - Regex: "^\"" + Priority: 4 + # Library headers. Update when adding new libraries. + # NOTE: clang-format retains leading white-space on a line in violation of the YAML spec. + # Ex: + # - Regex: "<(fmt|spdlog)" + # Priority: 3 + - Regex: "^<(absl|boost|catch2|fmt|mariadb|msgpack|spdlog|spider)" + Priority: 3 + # C system headers + - Regex: "^<.+\\.h>" + Priority: 1 + # C++ standard libraries + - Regex: "^<.+>" + Priority: 2