Exemplo n.º 1
0
        private static void ParseAllProjectFiles()
        {
            List <IProjectFile> projectFiles = PenradProject.GetAllProjectFiles().ToList();

            foreach (IProjectFile projectFile in projectFiles)
            {
                string ext = Path.GetExtension(projectFile.Name).ToLower();

                switch (ext)
                {
                case ".cpp":
                    if (CodeCnt-- > 0)
                    {
                        //ProcessCppFile(projectFile.Name);
                        break;
                    }
                    else
                    {
                        continue;
                    }

                case ".h":
                    if (HeaderCnt-- > 0)
                    {
                        //ProcessHeaderFile(projectFile.Name);
                        break;
                    }
                    else
                    {
                        continue;
                    }
                }
            }
        }
Exemplo n.º 2
0
        private static void LoopClasse()
        {
            //IDeclaration declaration = PenradProject.GetComponent<IDeclaration>();

            IProjectItem projectElement = null;
            IModule      module1        = null;

            foreach (var module in PenradProject.GetThisAndReferencedProjects())
            {
            }
        }
Exemplo n.º 3
0
        private static void MapProjectFiles()
        {
            List <IProjectFile> projectFiles = PenradProject.GetAllProjectFiles().ToList();

            foreach (IProjectFile projectFile in projectFiles)
            {
                string ext = Path.GetExtension(projectFile.Name).ToLower();

                switch (ext)
                {
                case ".cpp":
                    CppFileMap.Add(projectFile.Name.ToLower(), projectFile);
                    break;

                case ".h":
                    HeaderFileMap.Add(projectFile.Name.ToLower(), projectFile);
                    break;
                }
            }
        }