Skip to content

Commit

Permalink
update astyle to 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 23, 2018
1 parent f2273c6 commit 834a945
Show file tree
Hide file tree
Showing 9 changed files with 1,758 additions and 699 deletions.
201 changes: 143 additions & 58 deletions external/astyle/ASBeautifier.cpp

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions external/astyle/ASEnhancer.cpp
@@ -1,5 +1,5 @@
// ASEnhancer.cpp
// Copyright (c) 2017 by Jim Pattee <jimp03@email.com>.
// Copyright (c) 2018 by Jim Pattee <jimp03@email.com>.
// This code is licensed under the MIT License.
// License.md describes the conditions under which this software may be distributed.

Expand Down Expand Up @@ -679,7 +679,6 @@ size_t ASEnhancer::processSwitchBlock(string& line, size_t index)
if (line[i] == '}')
{
sw.switchBraceCount--;
assert(sw.switchBraceCount <= braceCount);
if (sw.switchBraceCount == 0) // if end of switch statement
{
int lineUnindent = sw.unindentDepth;
Expand Down

0 comments on commit 834a945

Please sign in to comment.