From 9a5de9cdcdd9fd26e81313817037bcacd0f9b9cb Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Fri, 18 Jan 2019 10:34:12 +0100 Subject: [PATCH] Snippets: Add snippet range-based for Change-Id: Ie412875dd42ccd24daf83fd5a5abe32248ee23bd Reviewed-by: David Schulz --- share/qtcreator/snippets/cpp.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/qtcreator/snippets/cpp.xml b/share/qtcreator/snippets/cpp.xml index 11f9241327b..5ade1dc1c8b 100644 --- a/share/qtcreator/snippets/cpp.xml +++ b/share/qtcreator/snippets/cpp.xml @@ -43,6 +43,9 @@ public: for (int $var$ = 0; $var$ < $total$; ++$var$) { $$ } +for ($var$ : $container$) { + $$ +} foreach ($var$, $container$) { $$ }