public static void FindEvents(this PassBuilder builder, TypeMapDatabase database) { var pass = new FindEventsPass(database); builder.AddPass(pass); }
public static void RenameWithPattern(this PassBuilder<TranslationUnitPass> builder, string pattern, string replacement, RenameTargets targets) { builder.AddPass(new RegexRenamePass(pattern, replacement, targets)); }
public static void RenameDeclsCase(this PassBuilder<TranslationUnitPass> builder, RenameTargets targets, RenameCasePattern pattern) { builder.AddPass(new CaseRenamePass(targets, pattern)); }
public static void RenameDeclsUpperCase(this PassBuilder<TranslationUnitPass> builder, RenameTargets targets) { builder.AddPass(new CaseRenamePass(targets, RenameCasePattern.UpperCamelCase)); }
public static void RemovePrefix(this PassBuilder<TranslationUnitPass> builder, string prefix, RenameTargets targets = RenameTargets.Any) { builder.AddPass(new RegexRenamePass("^" + prefix, string.Empty, targets)); }