Skip to content

Commit

Permalink
Merge branch 'master' into dev/lamadio/webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ooeygui authored Nov 18, 2021
2 parents b6aeb3f + 099db0a commit de60d7a
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 46 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.7.0
* Update 3rd party disclosure and attribution

## 0.6.9
* [#429] Contribution by RyanDraves - Start ROS Core/Daemon if not running when launch debugging
* [#435] Contribution by RyanDraves - Support ROS Test launch file debugging
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ A big ***Thank you!*** to everyone that have helped make this extension better!

* Andrew Short ([@ajshort](https://github.com/ajshort)), **original author**
* James Giller ([@JamesGiller](https://github.com/JamesGiller))
* PickNikRobotics ([@PickNikRobotics](https://github.com/PickNikRobotics)) for code formatting

### ROS Web Tools
This extension leverages [ROS Web Tools](http://robotwebtools.org/) for URDF Previewing.
Expand Down
31 changes: 30 additions & 1 deletion THIRD_PARTY_NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,33 @@ POSSIBILITY OF SUCH DAMAGE.
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
```
```

## `PickNikRobotics/roscpp_code_format` ORIGINAL LICENSE
Copyright (c) 2015, Dave Coleman
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of roscpp_code_format nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104 changes: 59 additions & 45 deletions src/cpp-formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,65 @@ import * as vscode from "vscode";
* @link https://github.com/davetcoleman/roscpp_code_format
*/
const CLANG_FORMAT_STYLE = {
AccessModifierOffset: -2,
AlignEscapedNewlinesLeft: false,
AlignTrailingComments: true,
AllowAllParametersOfDeclarationOnNextLine: false,
AllowShortFunctionsOnASingleLine: "None",
AllowShortIfStatementsOnASingleLine: false,
AllowShortLoopsOnASingleLine: false,
AlwaysBreakBeforeMultilineStrings: false,
AlwaysBreakTemplateDeclarations: true,
BasedOnStyle: "Google",
BinPackParameters: true,
BreakBeforeBinaryOperators: false,
BreakBeforeBraces: "Allman",
BreakBeforeTernaryOperators: false,
BreakConstructorInitializersBeforeComma: true,
ColumnLimit: 120,
ConstructorInitializerAllOnOneLineOrOnePerLine: true,
ConstructorInitializerIndentWidth: 2,
ContinuationIndentWidth: 4,
Cpp11BracedListStyle: false,
DerivePointerBinding: true,
ExperimentalAutoDetectBinPacking: false,
IndentCaseLabels: true,
IndentFunctionDeclarationAfterType: false,
IndentWidth: 2,
MaxEmptyLinesToKeep: 1,
NamespaceIndentation: "None",
ObjCSpaceBeforeProtocolList: true,
PenaltyBreakBeforeFirstCallParameter: 19,
PenaltyBreakComment: 60,
PenaltyBreakFirstLessLess: 1000,
PenaltyBreakString: 1,
PenaltyExcessCharacter: 1000,
PenaltyReturnTypeOnItsOwnLine: 90,
PointerBindsToType: false,
SpaceAfterControlStatementKeyword: true,
SpaceBeforeAssignmentOperators: true,
SpaceInEmptyParentheses: false,
SpacesBeforeTrailingComments: 2,
SpacesInAngles: false,
SpacesInCStyleCastParentheses: false,
SpacesInParentheses: false,
Standard: "Auto",
TabWidth: 2,
UseTab: "Never",
BasedOnStyle: "Google",
AccessModifierOffset: -2,
ConstructorInitializerIndentWidth: 2,
AlignEscapedNewlinesLeft: false,
AlignTrailingComments: true,
AllowAllParametersOfDeclarationOnNextLine: false,
AllowShortIfStatementsOnASingleLine: false,
AllowShortLoopsOnASingleLine: false,
AllowShortFunctionsOnASingleLine: "None",
AlwaysBreakTemplateDeclarations: true,
AlwaysBreakBeforeMultilineStrings: true,
BreakBeforeBinaryOperators: false,
BreakBeforeTernaryOperators: false,
BreakConstructorInitializersBeforeComma: true,
BinPackParameters: true,
ColumnLimit: 120,
ConstructorInitializerAllOnOneLineOrOnePerLine: true,
DerivePointerBinding: false,
PointerBindsToType: true,
ExperimentalAutoDetectBinPacking: false,
IndentCaseLabels: true,
MaxEmptyLinesToKeep: 1,
NamespaceIndentation: "None",
ObjCSpaceBeforeProtocolList: true,
PenaltyBreakBeforeFirstCallParameter: 19,
PenaltyBreakComment: 60,
PenaltyBreakString: 1,
PenaltyBreakFirstLessLess: 1000,
PenaltyExcessCharacter: 1000,
PenaltyReturnTypeOnItsOwnLine: 90,
SpacesBeforeTrailingComments: 2,
Cpp11BracedListStyle: false,
Standard: "Auto",
IndentWidth: 2,
TabWidth: 2,
UseTab: "Never",
IndentFunctionDeclarationAfterType: false,
SpacesInParentheses: false,
SpacesInAngles: false,
SpaceInEmptyParentheses: false,
SpacesInCStyleCastParentheses: false,
SpaceAfterControlStatementKeyword: true,
SpaceBeforeAssignmentOperators: true,
ContinuationIndentWidth: 4,
SortIncludes: false,
SpaceAfterCStyleCast: false,
BreakBeforeBraces: "Custom",
BraceWrapping: {
AfterClass: true,
AfterControlStatement: true,
AfterEnum : true,
AfterFunction : true,
AfterNamespace : true,
AfterStruct : true,
AfterUnion : true,
BeforeCatch : true,
BeforeElse : true,
IndentBraces : false
}
};

/**
Expand Down

0 comments on commit de60d7a

Please sign in to comment.