This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ba1653
commit 56f0aad
Showing
45 changed files
with
603 additions
and
719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# http://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
BasedOnStyle: Google | ||
# This defaults to 'Auto'. Explicitly set it for a while, so that | ||
# 'vector<vector<int> >' in existing files gets formatted to | ||
# 'vector<vector<int>>'. ('Auto' means that clang-format will only use | ||
# 'int>>' if the file already contains at least one such instance.) | ||
Standard: Cpp11 | ||
SortIncludes: true | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
BreakStringLiterals: false | ||
DerivePointerAlignment: true | ||
PointerAlignment: Left | ||
ColumnLimit: 100 | ||
ForEachMacros: ['list_for_every_entry','list_for_every_entry_safe'] | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
# This specific header must come last in kernel source files. Its | ||
# matching rule must come first so the lower-priority rules don't match. | ||
- Regex: '^<ktl/enforce\.h>' | ||
Priority: 1000 | ||
# C Header: <foo.h>, <net/foo.h>, etc | ||
- Regex: '^(<((zircon/|lib/|fuchsia/|arpa/|net/|netinet/|sys/|fidl/)[a-zA-Z0-9_/\.-]+\.h|[a-zA-Z0-9_-]+\.h)>)' | ||
Priority: 1 | ||
# Cpp Header: <foo> and <experimental/foo> | ||
- Regex: '^(<(experimental/)*[a-zA-Z0-9_-]+>)' | ||
Priority: 2 | ||
# Libraries: <foo/bar.h> | ||
- Regex: '^(<[a-zA-Z0-9_/-]+\.h>)' | ||
Priority: 3 | ||
# Local headers: "foo/bar.h" | ||
- Regex: '^("[.a-zA-Z0-9_/-]+\.h")' | ||
Priority: 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// NOLINTBEGIN | ||
#ifdef _MSC_VER | ||
#pragma warning(push) | ||
#pragma warning (disable:ALL_CODE_ANALYSIS_WARNINGS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// NOLINTEND | ||
#ifdef _MSC_VER | ||
#pragma warning(pop) | ||
#endif | ||
#endif | ||
// NOLINTEND |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.