Ejemplo n.º 1
0
        private void UpdateProject(Project project)
        {
            // TODO: Should get resolved include files as well (to resolve IO headers)
            var files = VSHelper.GetFiles(project);

            files = files.Where(f => Path.GetExtension(f) != ".ld").ToList();

            var reverse_runner = new Runner.ReverseRunner(CFlow, files);
            var tree_runner    = new Runner.TreeRunner(CFlow, files);
            var xref_runner    = new Runner.XrefRunner(CFlow, files);

            var reverse_output = reverse_runner.Run();
            var tree_output    = tree_runner.Run();
            var xref_output    = xref_runner.Run();

            Log("############################# Tree  Output ###########################");
            Log(tree_output);
            Log("######################################################################");
            Log("########################### Reverse Output ###########################");
            Log(reverse_output);
            Log("######################################################################");
            Log("########################### XREF    Output ###########################");
            Log(xref_output);
            Log("######################################################################");


            var tree_results        = Parser.CFlowReverseParser.Parse(new List <string>(tree_output.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)));
            var reverse_results     = Parser.CFlowReverseParser.Parse(new List <string>(reverse_output.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)));
            var xref_result_bound   = Parser.CFlowXrefParser.Parse(new List <string>(xref_output.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)));
            var xref_result_unbound = Parser.CFlowXrefParser.ParseUnbound(new List <string>(xref_output.Split(new string[] { Environment.NewLine }, StringSplitOptions.None)));
        }
Ejemplo n.º 2
0
        private void UpdateProject(string name)
        {
            Log($"Build finished notification for '{ name }'");
            var projects = VSHelper.GetProjects(dte);

            var project = projects.Where(p => p.Name.Equals(name)).First();

            UpdateProject(project);
        }