Skip to content

Commit

Permalink
Add clang-format file in quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
sitaowang1998 committed Jan 8, 2025
1 parent b21c883 commit f2a5dd2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/quick-start/.clang-format
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f2a5dd2

Please sign in to comment.