Example #1
0
        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);
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public override void Process(ClangSource src, Patch yr, Options options)
 {
     Process_c_file(src.file, new List <string> {
         CProcessorOption
     }, options);
 }
Example #4
0
 public abstract void Process(ClangSource src, Patch yr, Options options);
Example #5
0
 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);
 }