forked from nv-morpheus/MRC
-
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.
- Loading branch information
0 parents
commit 863f44f
Showing
575 changed files
with
68,778 additions
and
0 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,156 @@ | ||
--- | ||
# Refer to the following link for the explanation of each params: | ||
# http://releases.llvm.org/12.0.0/tools/clang/docs/ClangFormatStyleOptions.html | ||
Language: Cpp | ||
# BasedOnStyle: Google | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: Align | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Left | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AllowAllConstructorInitializersOnNextLine: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: false # Allows placing breakpoint | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: false | ||
# This is deprecated | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: true | ||
IndentBraces: false | ||
# disabling the below splits, else, they'll just add to the vertical length of source files! | ||
SplitEmptyFunction: false | ||
SplitEmptyRecord: false | ||
SplitEmptyNamespace: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: AfterColon | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 120 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
# Kept the below 2 to be the same as `IndentWidth` to keep everything uniform | ||
ConstructorInitializerIndentWidth: 2 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '^<ext/.*\.h>' | ||
Priority: 2 | ||
- Regex: '^<.*\.h>' | ||
Priority: 1 | ||
- Regex: '^<.*' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 3 | ||
IncludeIsMainRegex: '([-_](test|unittest))?$' | ||
IndentCaseBlocks: false | ||
IndentCaseLabels: false | ||
IndentPPDirectives: None | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
ObjCBinPackProtocolList: Never | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 1 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 200 | ||
PointerAlignment: Left | ||
RawStringFormats: | ||
- Language: Cpp | ||
Delimiters: | ||
- cc | ||
- CC | ||
- cpp | ||
- Cpp | ||
- CPP | ||
- 'c++' | ||
- 'C++' | ||
CanonicalDelimiter: '' | ||
- Language: TextProto | ||
Delimiters: | ||
- pb | ||
- PB | ||
- proto | ||
- PROTO | ||
EnclosingFunctions: | ||
- EqualsProto | ||
- EquivToProto | ||
- PARSE_PARTIAL_TEXT_PROTO | ||
- PARSE_TEST_PROTO | ||
- PARSE_TEXT_PROTO | ||
- ParseTextOrDie | ||
- ParseTextProtoOrDie | ||
CanonicalDelimiter: '' | ||
BasedOnStyle: google | ||
# Enabling comment reflow causes doxygen comments to be messed up in their formats! | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 2 | ||
SpacesInAngles: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
# Be consistent with indent-width, even for people who use tab for indentation! | ||
TabWidth: 4 | ||
UseTab: Never |
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,211 @@ | ||
--- | ||
# Disable most checks | ||
# Enable readability checks | ||
# Disable annoying readability checks | ||
# Enable modern checks (most have auto fixes available) | ||
# Disable modernize-use-trailing-return-type (too many hits) | ||
# Disable modernize-use-nodiscard (why isnt [[nodiscard]] the default?) | ||
# Enable identifier in TODO comments | ||
Checks: > | ||
-*, | ||
readability-*, | ||
-readability-magic-numbers, | ||
-readability-function-*, | ||
modernize-*, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-nodiscard, | ||
google-readability-todo | ||
#WarningsAsErrors: '*' | ||
HeaderFilterRegex: '.*\/include\/srf\/.*' | ||
AnalyzeTemporaryDtors: false | ||
FormatStyle: file | ||
CheckOptions: | ||
- key: cert-dcl16-c.NewSuffixes | ||
value: 'L;LL;LU;LLU' | ||
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField | ||
value: '0' | ||
- key: cert-str34-c.DiagnoseSignedUnsignedCharComparisons | ||
value: '0' | ||
- key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors | ||
value: '1' | ||
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic | ||
value: '1' | ||
- key: google-readability-function-size.StatementThreshold | ||
value: '800' | ||
- key: google-readability-namespace-comments.ShortNamespaceLines | ||
value: '10' | ||
- key: google-readability-namespace-comments.SpacesBeforeComments | ||
value: '2' | ||
- key: llvm-else-after-return.WarnOnConditionVariables | ||
value: '0' | ||
- key: llvm-else-after-return.WarnOnUnfixable | ||
value: '0' | ||
- key: llvm-qualified-auto.AddConstToQualified | ||
value: '1' | ||
- key: modernize-loop-convert.MaxCopySize | ||
value: '16' | ||
- key: modernize-loop-convert.MinConfidence | ||
value: reasonable | ||
- key: modernize-loop-convert.NamingStyle | ||
value: CamelCase | ||
- key: modernize-pass-by-value.IncludeStyle | ||
value: llvm | ||
- key: modernize-replace-auto-ptr.IncludeStyle | ||
value: llvm | ||
- key: modernize-use-nullptr.NullMacros | ||
value: 'NULL' | ||
- key: readability-identifier-naming.AggressiveDependentMemberLookup | ||
value: 'true' | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ClassIgnoredRegexp | ||
value: ^is_.*$ | ||
- key: readability-identifier-naming.ClassPrefix | ||
value: '' | ||
- key: readability-identifier-naming.ClassSuffix | ||
value: '' | ||
- key: readability-identifier-naming.ConstexprVariableCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ConstexprVariableIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.ConstexprVariablePrefix | ||
value: '' | ||
- key: readability-identifier-naming.ConstexprVariableSuffix | ||
value: '' | ||
- key: readability-identifier-naming.EnumCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.EnumConstantIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.EnumConstantPrefix | ||
value: '' | ||
- key: readability-identifier-naming.EnumConstantSuffix | ||
value: '' | ||
- key: readability-identifier-naming.EnumIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.EnumPrefix | ||
value: '' | ||
- key: readability-identifier-naming.EnumSuffix | ||
value: '' | ||
- key: readability-identifier-naming.FunctionCase | ||
value: lower_case | ||
- key: readability-identifier-naming.FunctionIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.FunctionPrefix | ||
value: '' | ||
- key: readability-identifier-naming.FunctionSuffix | ||
value: '' | ||
- key: readability-identifier-naming.GetConfigPerFile | ||
value: 'true' | ||
- key: readability-identifier-naming.GlobalConstantCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.GlobalConstantIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.GlobalConstantPrefix | ||
value: '' | ||
- key: readability-identifier-naming.GlobalConstantSuffix | ||
value: '' | ||
- key: readability-identifier-naming.IgnoreFailedSplit | ||
value: 'false' | ||
- key: readability-identifier-naming.IgnoreMainLikeFunctions | ||
value: 'false' | ||
- key: readability-identifier-naming.MacroDefinitionCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.MemberCase | ||
value: lower_case | ||
- key: readability-identifier-naming.MemberIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.MemberPrefix | ||
value: '' | ||
- key: readability-identifier-naming.MemberSuffix | ||
value: '' | ||
- key: readability-identifier-naming.NamespaceCase | ||
value: lower_case | ||
- key: readability-identifier-naming.NamespaceIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.NamespacePrefix | ||
value: '' | ||
- key: readability-identifier-naming.NamespaceSuffix | ||
value: '' | ||
- key: readability-identifier-naming.ParameterCase | ||
value: lower_case | ||
- key: readability-identifier-naming.ParameterIgnoredRegexp | ||
value: ^_.*$ | ||
- key: readability-identifier-naming.ParameterPrefix | ||
value: '' | ||
- key: readability-identifier-naming.ParameterSuffix | ||
value: '' | ||
- key: readability-identifier-naming.PrivateMemberIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.PrivateMemberPrefix | ||
value: m_ | ||
- key: readability-identifier-naming.PrivateMemberSuffix | ||
value: '' | ||
- key: readability-identifier-naming.ProtectedMemberIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.ProtectedMemberPrefix | ||
value: m_ | ||
- key: readability-identifier-naming.ProtectedMemberSuffix | ||
value: '' | ||
- key: readability-identifier-naming.PublicMemberIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.PublicMemberPrefix | ||
value: '' | ||
- key: readability-identifier-naming.PublicMemberSuffix | ||
value: '' | ||
- key: readability-identifier-naming.StaticConstantCase | ||
value: UPPER_CASE | ||
- key: readability-identifier-naming.StaticConstantIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.StaticConstantPrefix | ||
value: '' | ||
- key: readability-identifier-naming.StaticConstantSuffix | ||
value: '' | ||
- key: readability-identifier-naming.StructCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.StructIgnoredRegexp | ||
value: ^is_.*$ | ||
- key: readability-identifier-naming.StructPrefix | ||
value: '' | ||
- key: readability-identifier-naming.StructSuffix | ||
value: '' | ||
- key: readability-identifier-naming.TypeAliasCase | ||
value: lower_case | ||
- key: readability-identifier-naming.TypeAliasIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.TypeAliasPrefix | ||
value: '' | ||
- key: readability-identifier-naming.TypeAliasSuffix | ||
value: _t | ||
- key: readability-identifier-naming.TypedefCase | ||
value: lower_case | ||
- key: readability-identifier-naming.TypedefIgnoredRegexp | ||
value: '' | ||
- key: readability-identifier-naming.TypedefPrefix | ||
value: '' | ||
- key: readability-identifier-naming.TypedefSuffix | ||
value: _t | ||
- key: readability-identifier-naming.TemplateParameterCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TemplateParameterIgnoredRegexp | ||
value: ^[A-Z_]\w{0,2}$ | ||
- key: readability-identifier-naming.TemplateParameterPrefix | ||
value: '' | ||
- key: readability-identifier-naming.TemplateParameterSuffix | ||
value: '' | ||
- key: readability-identifier-naming.TypeTemplateParameterCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.TypeTemplateParameterIgnoredRegexp | ||
value: ^[A-Z_]\w{0,2}$ | ||
- key: readability-identifier-naming.TypeTemplateParameterPrefix | ||
value: '' | ||
- key: readability-identifier-naming.TypeTemplateParameterSuffix | ||
value: T | ||
- key: readability-identifier-naming.ValueTemplateParameterCase | ||
value: CamelCase | ||
- key: readability-identifier-naming.ValueTemplateParameterIgnoredRegexp | ||
value: ^[A-Z_]\w{0,2}$ | ||
- key: readability-identifier-naming.ValueTemplateParameterPrefix | ||
value: '' | ||
- key: readability-identifier-naming.ValueTemplateParameterSuffix | ||
value: '' |
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,8 @@ | ||
.cache | ||
build* | ||
*.engine | ||
models | ||
@eaDir | ||
__pycache__ | ||
bazel-* | ||
./vcpkg_installed |
Oops, something went wrong.