-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indent_continue not indenting nested statements
- Loading branch information
1 parent
771b9cc
commit 2adf01c
Showing
8 changed files
with
162 additions
and
33 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
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 @@ | ||
input_tab_size = 4 | ||
output_tab_size = 4 | ||
indent_columns = 4 | ||
indent_with_tabs = 0 | ||
|
||
indent_ignore_first_continue = false | ||
indent_continue = 4 | ||
|
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 |
---|---|---|
@@ -1,41 +1,41 @@ | ||
obj.AddObject(Object::UniqueName(), 10, [this] { | ||
holder.Access([this](const auto &info) { | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
}); | ||
|
||
obj.AddObject( | ||
Object::UniqueName(), | ||
10, | ||
[this] { | ||
holder.Access([this](const auto &info) { | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
} | ||
); | ||
|
||
{ | ||
obj.AddObject(Object::UniqueName(), 10, [this] { | ||
holder.Access([this](const auto &info) { | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
}); | ||
|
||
obj.AddObject( | ||
Object::UniqueName(), | ||
10, | ||
[this] { | ||
holder.Access([this](const auto &info) { | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
if (IsGood(info)) { | ||
Add(info); | ||
} | ||
}); | ||
} | ||
); | ||
} |
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,59 @@ | ||
foo( | ||
1 | ||
); | ||
|
||
foo(bar( | ||
1 | ||
) | ||
); | ||
|
||
foo(bar(baz( | ||
1) | ||
) | ||
); | ||
|
||
foo(bar( | ||
baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
bar(baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
bar( | ||
baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
1, | ||
bar( | ||
2, | ||
baz( | ||
3 | ||
) | ||
) | ||
); | ||
|
||
foo(1, | ||
bar(2, | ||
3 | ||
) | ||
); | ||
|
||
namespace ns | ||
{ | ||
foo(1 | ||
, 2 | ||
, [](a, b) { | ||
bar(3 | ||
, 4 | ||
); | ||
}); | ||
} |
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,59 @@ | ||
foo( | ||
1 | ||
); | ||
|
||
foo(bar( | ||
1 | ||
) | ||
); | ||
|
||
foo(bar(baz( | ||
1) | ||
) | ||
); | ||
|
||
foo(bar( | ||
baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
bar(baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
bar( | ||
baz( | ||
1) | ||
) | ||
); | ||
|
||
foo( | ||
1, | ||
bar( | ||
2, | ||
baz( | ||
3 | ||
) | ||
) | ||
); | ||
|
||
foo(1, | ||
bar(2, | ||
3 | ||
) | ||
); | ||
|
||
namespace ns | ||
{ | ||
foo(1 | ||
, 2 | ||
, [](a, b) { | ||
bar(3 | ||
, 4 | ||
); | ||
}); | ||
} |