summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2011-01-03 14:35:43 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2011-01-03 14:35:43 -0800
commitc69d48f007d2521fdbea52a0a7a95cfc4a547174 (patch)
tree59a866d2f48310090b5dd18dad0095029314cb6f /src/python/m5
parent1a10ccc5e551857fc3a7c049df99547ccfe3f72b (diff)
downloadgem5-c69d48f007d2521fdbea52a0a7a95cfc4a547174.tar.xz
Make commenting on close namespace brackets consistent.
Ran all the source files through 'perl -pi' with this script: s|\s*(};?\s*)?/\*\s*(end\s*)?namespace\s*(\S+)\s*\*/(\s*})?|} // namespace $3|; s|\s*};?\s*//\s*(end\s*)?namespace\s*(\S+)\s*|} // namespace $2\n|; s|\s*};?\s*//\s*(\S+)\s*namespace\s*|} // namespace $1\n|; Also did a little manual editing on some of the arch/*/isa_traits.hh files and src/SConscript.
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/SimObject.py4
-rw-r--r--src/python/m5/params.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py
index 710f85fde..00c18976d 100644
--- a/src/python/m5/SimObject.py
+++ b/src/python/m5/SimObject.py
@@ -126,7 +126,7 @@ def default_swig_objdecls(cls, code):
code('{};')
for ns in reversed(namespaces):
- code('/* namespace $ns */ }')
+ code('} // namespace $ns')
def public_value(key, value):
return key.startswith('_') or \
@@ -390,7 +390,7 @@ class MetaSimObject(type):
code('namespace $ns {')
code('class $0;', class_path[-1])
for ns in reversed(class_path[:-1]):
- code('/* namespace $ns */ }')
+ code('} // namespace $ns')
code()
for param in params:
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 0093a411d..2c3925d99 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -1004,7 +1004,7 @@ namespace Enums {
code.dedent(2)
code('''
};
-/* namespace Enums */ }
+} // namespace Enums
''')
# Base class for enum types.