diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-03 14:35:43 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2011-01-03 14:35:43 -0800 |
commit | c69d48f007d2521fdbea52a0a7a95cfc4a547174 (patch) | |
tree | 59a866d2f48310090b5dd18dad0095029314cb6f /src/python | |
parent | 1a10ccc5e551857fc3a7c049df99547ccfe3f72b (diff) | |
download | gem5-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')
-rw-r--r-- | src/python/m5/SimObject.py | 4 | ||||
-rw-r--r-- | src/python/m5/params.py | 2 | ||||
-rw-r--r-- | src/python/swig/stats.i | 2 |
3 files changed, 4 insertions, 4 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. diff --git a/src/python/swig/stats.i b/src/python/swig/stats.i index fc4a83394..eaa4c31c8 100644 --- a/src/python/swig/stats.i +++ b/src/python/swig/stats.i @@ -59,4 +59,4 @@ void reset(); std::list<Info *> &statsList(); -/* namespace Stats */ } +} // namespace Stats |