Here are the examples of the csharp api class CppSharp.Driver.SortModulesByDependencies() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: CppSharp
Source File: Driver.cs
Source File: Driver.cs
public bool ParseLibraries() { foreach (var module in Options.Modules) { foreach (var libraryDir in module.LibraryDirs) ParserOptions.AddLibraryDirs(libraryDir); foreach (var library in module.Libraries) { if (Context.Symbols.Libraries.Any(l => l.FileName == library)) continue; var parser = new ClangParser(); parser.LibraryParsed += OnFileParsed; using (var res = parser.ParseLibrary(library, ParserOptions)) { if (res.Kind != ParserResultKind.Success) continue; Context.Symbols.Libraries.Add(ClangParser.ConvertLibrary(res.Library)); } } } Context.Symbols.IndexSymbols(); SortModulesByDependencies(); return true; }