forked from MRPT/mrpt
-
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
Showing
1,583 changed files
with
12,829 additions
and
15,230 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 |
---|---|---|
@@ -1,99 +1,165 @@ | ||
############################################################################### | ||
# Mobile Robot Programming Toolkit (MRPT) | ||
# https://www.mrpt.org/ | ||
# | ||
############################################################################### | ||
|
||
# For all the available options - and taking in account the version of | ||
# clang-format see the following links: | ||
# | ||
# More accurate if we know the version in advance | ||
# http://releases.llvm.org/3.8.0/tools/clang/docs/ClangFormatStyleOptions.html | ||
# | ||
# Holds a general list of keys - may not be applicable for our version though | ||
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
|
||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
# --- | ||
#AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: AlwaysBreak # Values: Align, DontAlign, AlwaysBreak | ||
#AlignConsecutiveAssignments: true | ||
#AlignConsecutiveDeclarations: true | ||
#AlignEscapedNewlinesLeft: true | ||
#AlignOperands: false | ||
AlignTrailingComments: false # Should be off, causes many dummy problems!! | ||
#AllowAllParametersOfDeclarationOnNextLine: true | ||
#AllowShortBlocksOnASingleLine: false | ||
#AllowShortCaseLabelsOnASingleLine: false | ||
#AllowShortFunctionsOnASingleLine: Empty | ||
#AllowShortIfStatementsOnASingleLine: false | ||
#AllowShortLoopsOnASingleLine: false | ||
#AlwaysBreakAfterDefinitionReturnType: None | ||
#AlwaysBreakAfterReturnType: None | ||
#AlwaysBreakBeforeMultilineStrings: true | ||
#AlwaysBreakTemplateDeclarations: true | ||
#BinPackArguments: false | ||
#BinPackParameters: false | ||
#BraceWrapping: | ||
#AfterClass: false | ||
#AfterControlStatement: false | ||
#AfterEnum: false | ||
#AfterFunction: false | ||
#AfterNamespace: false | ||
#AfterObjCDeclaration: false | ||
#AfterStruct: false | ||
#AfterUnion: false | ||
#BeforeCatch: false | ||
#BeforeElse: true | ||
#IndentBraces: false | ||
#BreakBeforeBinaryOperators: None | ||
AccessModifierOffset: -1 | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignConsecutiveMacros: false | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Right | ||
AlignOperands: false | ||
AlignTrailingComments: false | ||
AllowAllArgumentsOnNextLine: true | ||
AllowAllConstructorInitializersOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: Always | ||
AllowShortCaseLabelsOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: Always | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterCaseLabel: true | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: true | ||
AfterStruct: true | ||
AfterUnion: true | ||
AfterExternBlock: true | ||
BeforeCatch: true | ||
BeforeElse: true | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Allman | ||
#BreakBeforeTernaryOperators: true | ||
#BreakConstructorInitializersBeforeComma: false | ||
ColumnLimit: 80 | ||
#CommentPragmas: '' | ||
#ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
#ConstructorInitializerIndentWidth: 4 | ||
#ContinuationIndentWidth: 4 | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeColon | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 80 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: true | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: true | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: true | ||
#DerivePointerAlignment: false | ||
#DisableFormat: false | ||
#ExperimentalAutoDetectBinPacking: false | ||
##FixNamespaceComments: true # Not applicable in 3.8 | ||
#ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
#IncludeCategories: | ||
#- Regex: '.*' | ||
#Priority: 1 | ||
DeriveLineEnding: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeBlocks: Regroup | ||
IncludeCategories: | ||
- Regex: '^<ext/.*\.h>' | ||
Priority: 2 | ||
SortPriority: 0 | ||
- Regex: '^<.*\.h>' | ||
Priority: 1 | ||
SortPriority: 0 | ||
- Regex: '^<.*' | ||
Priority: 2 | ||
SortPriority: 0 | ||
- Regex: '.*' | ||
Priority: 3 | ||
SortPriority: 0 | ||
IncludeIsMainRegex: '([-_](test|unittest))?$' | ||
IncludeIsMainSourceRegex: '' | ||
IndentCaseLabels: true | ||
IndentGotoLabels: true | ||
IndentPPDirectives: None | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: true | ||
#KeepEmptyLinesAtTheStartOfBlocks: true | ||
#MacroBlockBegin: '' | ||
#MacroBlockEnd: '' | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: false | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: None | ||
#PenaltyBreakBeforeFirstCallParameter: 19 | ||
#PenaltyBreakComment: 300 | ||
#PenaltyBreakFirstLessLess: 120 | ||
#PenaltyBreakString: 1000 | ||
#PenaltyExcessCharacter: 1000000 | ||
#PenaltyReturnTypeOnItsOwnLine: 200 | ||
DerivePointerAlignment: false | ||
#PointerAlignment: Left | ||
ReflowComments: true # Should be true, otherwise clang-format doesn't touch comments | ||
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: '' | ||
BasedOnStyle: google | ||
- 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 | ||
ReflowComments: true | ||
SortIncludes: true | ||
#SpaceAfterCStyleCast: false | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
#SpaceBeforeParens: ControlStatements | ||
#SpaceInEmptyParentheses: false | ||
#SpacesBeforeTrailingComments: 2 | ||
#SpacesInAngles: false | ||
#SpacesInContainerLiterals: true | ||
#SpacesInCStyleCastParentheses: false | ||
#SpacesInParentheses: false | ||
#SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
SpaceBeforeCpp11BracedList: false | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyBlock: false | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 2 | ||
SpacesInAngles: false | ||
SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
SpaceBeforeSquareBrackets: false | ||
Standard: Latest | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
TabWidth: 4 | ||
UseTab: Always # Available options are Never, Always, ForIndentation | ||
#--- | ||
UseCRLF: false | ||
UseTab: Always | ||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,4 @@ class slamdemoApp : public wxApp | |
bool m_option_norun; | ||
}; | ||
|
||
#endif // SLAMDEMOAPP_H | ||
#endif // SLAMDEMOAPP_H |
Oops, something went wrong.