Don't add :: prefix to C++ fundamental types

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-01-06 22:53:31 +00:00
1 parent 33c786bfbf
commit 71e88bc282
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ def normalize_name(decl_string):
cls_name = decl_string
template_parameters = None
if not _digits.match(cls_name):
if not cls_name.startswith('::'):
if not cls_name.startswith('::') and cls_name not in cpptypes.FUNDAMENTAL_TYPES:
cls_name = '::' + cls_name
if template_parameters is None:
return cls_name