diff --git a/src/Bridge/Library.cs b/src/Bridge/Library.cs index 718f1b8c..ab20dd05 100644 --- a/src/Bridge/Library.cs +++ b/src/Bridge/Library.cs @@ -124,5 +124,19 @@ namespace Cxxi foreach (var decl in decls) decl.ExcludeFromPasses.Add(type); } + + /// + /// Use this to rename namespaces. + /// + public void RenameNamespace(string name, string newName) + { + foreach (var unit in TranslationUnits) + { + var @namespace = unit.FindNamespace(name); + + if (@namespace != null) + @namespace.Name = newName; + } + } } } \ No newline at end of file