logic: vs plugin fixes

Can now deal with single projects and solutions with non-c/c++ projects

bug id = 32
This commit is contained in:
wrongway88
2016-03-05 18:18:54 +01:00
parent c9f1f65ba4
commit 5cdaafc6de
8 changed files with 247 additions and 18 deletions
@@ -26,6 +26,10 @@ std::string SolutionParserVisualStudio::getSolutionName()
if (m_solutionName.size() > 0)
{
size_t pos = m_solutionName.find(".sln");
if (pos == std::string::npos)
{
pos = m_solutionName.find(".vcxproj");
}
if (pos != std::string::npos)
{
@@ -44,6 +48,12 @@ std::vector<std::string> SolutionParserVisualStudio::getProjects()
{
std::vector<std::string> projectFiles;
if (m_solutionName.size() > 0 && m_solutionName.find(".vcxproj") != std::string::npos)
{
projectFiles.push_back(m_solutionName);
return projectFiles;
}
if (m_solution.size() > 0)
{
std::vector<std::string> blocks = getProjectBlocks(m_solution);
+1 -1
View File
@@ -1 +1 @@
// #define DEPLOY
#define DEPLOY
+1 -1
View File
@@ -2741,7 +2741,7 @@ public:
TS_ASSERT_EQUALS(client.inheritances.size(), 1);
TS_ASSERT_EQUALS(client.calls.size(), 1);
TS_ASSERT_EQUALS(client.usages.size(), 3);
TS_ASSERT_EQUALS(client.typeUses.size(), 19);
TS_ASSERT_EQUALS(client.typeUses.size(), 19); // TODO: this test fails?!
TS_ASSERT_EQUALS(client.files.size(), 3);
TS_ASSERT_EQUALS(client.includes.size(), 1);