Пример #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);
        }
Пример #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);
            }
        }
Пример #3
0
 public override void Process(ClangSource src, Patch yr, Options options)
 {
     Process_c_file(src.file, new List <string> {
         CProcessorOption
     }, options);
 }
Пример #4
0
 public abstract void Process(ClangSource src, Patch yr, Options options);
Пример #5
0
 public override void Process(ClangSource src, Patch yr, Options options)
 {
     RunClangTidyOn(src.file, options);
 }
Пример #6
0
 public override void Process(ClangSource src, Misc.Patch yr, Options options)
 {
     RunOn(src.file, options);
 }