This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lazyten/.clang-tidy
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
125 lines (122 sloc)
5.54 KB
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
## --------------------------------------------------------------------- | |
## | |
## Copyright (C) 2016-17 by the lazyten authors | |
## | |
## This file is part of lazyten. | |
## | |
## lazyten is free software: you can redistribute it and/or modify | |
## it under the terms of the GNU General Public License as published | |
## by the Free Software Foundation, either version 3 of the License, or | |
## (at your option) any later version. | |
## | |
## lazyten is distributed in the hope that it will be useful, | |
## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
## GNU General Public License for more details. | |
## | |
## You should have received a copy of the GNU General Public License | |
## along with lazyten. If not, see <http://www.gnu.org/licenses/>. | |
## | |
## --------------------------------------------------------------------- | |
## DO NOT EDIT | |
## This file is automatically generated from a file in the repository "krims". | |
## Edit the original and call the script "update_from_sister_repos.sh" instead. | |
--- | |
Checks: 'clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-alpha*, | |
cppcoreguidelines-*,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic, | |
google-default-arguments,google-global-names-in-headers,google-runtime-member-string-references, | |
llvm-namespace-comment, | |
misc-*,-misc-macro-parentheses,-misc-noexcept-move-constructor,-misc-unused-parameters,-misc-throw-by-value-catch-by-reference, | |
modernize-*,-modernize-make-unique,-modernize-use-using, | |
performance-*, | |
readability-*,-readability-else-after-return,-readability-function-size, | |
' | |
# It would be nice to adhere to | |
# - cppcoreguidelines-pro-bounds-array-to-pointer-decay | |
# - cppcoreguidelines-pro-bounds-pointer-arithmetic | |
# - modernize-make-unique (Need C++11 compatibility) | |
# - modernize-use-using (Need C++11 compatibility) | |
# - misc-noexcept-move-constructor (A lot of work) | |
# - misc-throw-by-value-catch-by-reference (Problem with the tests) | |
# - readability-function-size (Problem is that catch macros produce a lot of code) | |
# | |
# Discuss: | |
# - readability-else-after-return | |
WarningsAsErrors: '' | |
AnalyzeTemporaryDtors: false | |
User: michaelfherbst | |
CheckOptions: | |
- key: cppcoreguidelines-pro-bounds-constant-array-index.GslHeader | |
value: '' | |
- key: cppcoreguidelines-pro-bounds-constant-array-index.IncludeStyle | |
value: '0' | |
- key: cppcoreguidelines-pro-type-member-init.IgnoreArrays | |
value: '0' | |
- key: llvm-namespace-comment.ShortNamespaceLines | |
value: '1' | |
- key: llvm-namespace-comment.SpacesBeforeComments | |
value: '2' | |
- key: misc-assert-side-effect.AssertMacros | |
value: "assert,assert_dbg" | |
- key: misc-assert-side-effect.CheckFunctionCalls | |
value: '0' | |
- key: misc-suspicious-string-compare.WarnOnImplicitComparison | |
value: '1' | |
- key: misc-suspicious-string-compare.WarnOnLogicalNotComparison | |
value: '1' | |
- key: modernize-loop-convert.MaxCopySize | |
value: '16' | |
- key: modernize-loop-convert.MinConfidence | |
value: reasonable | |
- key: modernize-use-auto.RemoveStars | |
value: '0' | |
- key: readability-braces-around-statements.ShortStatementLines | |
value: '1' | |
- key: readability-function-size.BranchThreshold | |
value: '4294967295' | |
- key: readability-function-size.LineThreshold | |
value: '4294967295' | |
- key: readability-function-size.StatementThreshold | |
value: '800' | |
# | |
# Naming convention | |
# | |
- key: readability-identifier-naming.AbstractClassSuffix | |
value: '_i' | |
- key: readability-identifier-naming.ClassCase | |
value: CamelCase | |
- key: readability-identifier-naming.ClassMemberCase | |
value: lower_case | |
- key: readability-identifier-naming.ClassMethodCase | |
value: lower_case | |
- key: readability-identifier-naming.MemberCase | |
value: lower_case | |
- key: readability-identifier-naming.MethodCase | |
value: lower_case | |
- key: readability-identifier-naming.EnumCase | |
value: CamelCase | |
- key: readability-identifier-naming.EnumConstantCase | |
value: UPPER_CASE | |
- key: readability-identifier-naming.FunctionCase | |
value: lower_case | |
- key: readability-identifier-naming.MacroDefinitionCase | |
value: aNy_CasE | |
- key: readability-identifier-naming.NamespaceCase | |
value: lower_case | |
- key: readability-identifier-naming.ParameterCase | |
value: lower_case | |
- key: readability-identifier-naming.ParameterPackCase | |
value: CamelCase | |
- key: readability-identifier-naming.PrivateMemberPrefix | |
value: 'm_' | |
- key: readability-identifier-naming.StaticConstantCase | |
value: lower_case | |
- key: readability-identifier-naming.StructCase | |
value: CamelCase | |
- key: readability-identifier-naming.TemplateParameterCase | |
value: CamelCase | |
- key: readability-identifier-naming.UnionCase | |
value: CamelCase | |
- key: readability-identifier-naming.VariableCase | |
value: lower_case | |
... | |