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