forked from qt-creator/qt-creator
Snippets: Add snippet range-based for
Change-Id: Ie412875dd42ccd24daf83fd5a5abe32248ee23bd Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -43,6 +43,9 @@ public:
|
||||
<snippet group="C++" trigger="for" id="cpp_for">for (int $var$ = 0; $var$ < $total$; ++$var$) {
|
||||
$$
|
||||
}</snippet>
|
||||
<snippet group="C++" trigger="for" id="cpp_for_rangebased" complement="range-based">for ($var$ : $container$) {
|
||||
$$
|
||||
}</snippet>
|
||||
<snippet group="C++" trigger="foreach" id="cpp_foreach">foreach ($var$, $container$) {
|
||||
$$
|
||||
}</snippet>
|
||||
|
Reference in New Issue
Block a user