summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com>2017-08-11 13:45:53 +0200
committerJuergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com>2017-08-11 13:45:53 +0200
commitc045f180c235454a786883d16213a7686efb58da (patch)
tree299d61161996f0affd96a2358a753cb511fff756
parent0743272c20c034c2252fcf098a94776cc3300144 (diff)
downloadqtivi-qface-c045f180c235454a786883d16213a7686efb58da.tar.gz
closing namespace filter also reports now the namespace name
-rw-r--r--qface/helper/qtcpp.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qface/helper/qtcpp.py b/qface/helper/qtcpp.py
index 83aa8fc..dc37f2a 100644
--- a/qface/helper/qtcpp.py
+++ b/qface/helper/qtcpp.py
@@ -126,7 +126,9 @@ class Filters(object):
@staticmethod
def close_ns(symbol):
'''generates a closing names statement from a symbol'''
- return ' '.join(['}' for x in symbol.module.name_parts])
+ closing = ' '.join(['}' for x in symbol.module.name_parts])
+ name = '::'.join(symbol.module.name_parts)
+ return '{0} // namespace {1}'.format(closing, name)
@staticmethod
def using_ns(symbol):