-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit fe40030
refactor(cc-mode): redesign for loop snippets
- Changes former 'fori' snippet to 'forit' for iterator loop.
- Changes 'fre' to 'fore' for std::for_each loop.
- Adds 'fori' snippet for a typical indexed for-loop.
- Simplifies basic 'for' loop.
I'll add sub-snippets later so users can expand certain idioms within
the for loop arguments or body.
Close: #91 1 parent 5d06d9f commit fe40030
4 files changed
+17
-8
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
3 | - | ||
2 | + | ||
3 | + | ||
4 | + | ||
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
3 | - | ||
4 | - | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
7 | + | ||
8 | 8 |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | - | ||
7 | - | ||
6 | + | ||
7 | + | ||
8 | 8 |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + |
0 commit comments