summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2018-03-13 10:42:34 +0100
committerDavid Schulz <david.schulz@qt.io>2018-03-13 10:17:12 +0000
commit61e93a05241023848ecbc6693890671fc021e820 (patch)
treead70bb71ce6cc7a64688b719c30388f5f71d2671 /share
parentf1985df55dfa81f184c9d29df6cfbb353bf77ffc (diff)
downloadqt-creator-61e93a05241023848ecbc6693890671fc021e820.tar.gz
Snippets: Add snippet for namespace with closing comment
Change-Id: Id0f0110ac427b3a6460eeae2891cd1c5c65fc6a3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/snippets/cpp.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/qtcreator/snippets/cpp.xml b/share/qtcreator/snippets/cpp.xml
index add4f47e86..11f9241327 100644
--- a/share/qtcreator/snippets/cpp.xml
+++ b/share/qtcreator/snippets/cpp.xml
@@ -174,6 +174,9 @@ $$</snippet>
<snippet group="C++" trigger="namespace" id="cpp_namespace">namespace $name$ {
$$
}</snippet>
+<snippet group="C++" trigger="namespace" id="cpp_namespace_with_comment" complement="with closing brace comment">namespace $name$ {
+ $$
+} // namespace $name$</snippet>
<snippet group="C++" trigger="try" id="cpp_trycatch" complement="and catch">try {
$$
} catch (...) {