Snippets: Add snippet range-based for

Change-Id: Ie412875dd42ccd24daf83fd5a5abe32248ee23bd
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2019-01-18 10:34:12 +01:00
parent b59f9b9b2c
commit 9a5de9cdcd

View File

@@ -43,6 +43,9 @@ public:
<snippet group="C++" trigger="for" id="cpp_for">for (int $var$ = 0; $var$ &lt; $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>