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:
@@ -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 @@
|
||||
// #define DEPLOY
|
||||
#define DEPLOY
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user