From f2a5dd23d76c0c0a8144d91579b265b302c8cd2a Mon Sep 17 00:00:00 2001 From: sitao Date: Tue, 7 Jan 2025 21:12:20 -0500 Subject: [PATCH] Add clang-format file in quick start --- examples/quick-start/.clang-format | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/quick-start/.clang-format 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