forked from DeepLink-org/DIOPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yb/add clang-tidy and fix (DeepLink-org#76)
* add clang-tidy for code static check and code style check
- Loading branch information
Showing
87 changed files
with
3,976 additions
and
3,479 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,68 @@ | ||
--- | ||
Checks: ' | ||
-*, | ||
clang-diagnostic-*, | ||
bugprone-*, | ||
-bugprone-easily-swappable-parameters, | ||
-bugprone-forward-declaration-namespace, | ||
-bugprone-macro-parentheses, | ||
-bugprone-lambda-function-name, | ||
-bugprone-reserved-identifier, | ||
-bugprone-swapped-arguments, | ||
-bugprone-narrowing-conversions, | ||
misc-*,-misc-const-correctness, | ||
-misc-unused-parameters, | ||
-misc-non-private-member-variables-in-classes, | ||
-misc-no-recursion, | ||
-misc-use-anonymous-namespace, | ||
hicpp-avoid-goto, | ||
modernize-*, | ||
-modernize-concat-nested-namespaces, | ||
-modernize-macro-to-enum, | ||
-modernize-return-braced-init-list, | ||
-modernize-use-auto, | ||
-modernize-use-default-member-init, | ||
-modernize-use-using, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-nodiscard, | ||
-modernize-avoid-c-arrays | ||
performance-*, | ||
-performance-noexcept-move-constructor, | ||
-performance-unnecessary-value-param, | ||
readability-identifier-naming, | ||
readability-container-size-empty, | ||
' | ||
|
||
|
||
# NOTE there must be no spaces before the '-', so put the comma last. | ||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: "CamelCase" | ||
- key: readability-identifier-naming.ClassMethodCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.EnumCase | ||
value: "CamelCase" | ||
- key: readability-identifier-naming.FunctionCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.MemberCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.MemberSuffix | ||
value: "_" | ||
- key: readability-identifier-naming.ParameterCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.UnionCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.VariableCase | ||
value: "camelBack" | ||
- key: readability-identifier-naming.IgnoreMainLikeFunctions | ||
value: 1 | ||
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors | ||
value: 1 | ||
- key: modernize-use-default-member-init.UseAssignment | ||
value: 1 | ||
|
||
HeaderFilterRegex: '.*' | ||
AnalyzeTemporaryDtors: false | ||
WarningsAsErrors: '*' | ||
UseColor: true | ||
... |
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
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
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
Oops, something went wrong.