public override void Process(ClangSource src, Misc.Patch yr, Options options) { var content = System.IO.File.ReadAllText(src.file); if (!content.Contains("memcpy")) { return; } Process_c_file(src.file, new List <string> { "-" + OptionName }, options); }
void Process(Transform transformer, ClangSource source) { try { var yr = new Patch { MainSourceFile = source.file, Replacements = new List <Replacement>() }; transformer.Process(source, yr, m_opts); WritePatch(yr); } catch (Exception e) { Console.Error.WriteLine("Cannot process: '{0}'", source.file); Console.Error.WriteLine(e); } }
public override void Process(ClangSource src, Patch yr, Options options) { Process_c_file(src.file, new List <string> { CProcessorOption }, options); }
public abstract void Process(ClangSource src, Patch yr, Options options);
public override void Process(ClangSource src, Patch yr, Options options) { RunClangTidyOn(src.file, options); }
public override void Process(ClangSource src, Misc.Patch yr, Options options) { RunOn(src.file, options); }