build: Fixed enum forward declarations and filepath checks in SonarGraphProjectTestSuite

This commit is contained in:
Eberhard Graether
2018-05-22 13:02:27 +02:00
parent 7b735cfd17
commit 59f32e9942
493 changed files with 11809 additions and 11325 deletions
+4 -3
View File
@@ -5,12 +5,13 @@
#include <set>
#include <vector>
#include "settings/LanguageType.h"
#include "settings/SourceGroupStatusType.h"
#include "settings/SourceGroupType.h"
class IndexerCommand;
class FilePath;
class SourceGroupSettings;
enum LanguageType;
enum SourceGroupStatusType;
enum SourceGroupType;
class SourceGroup
{
@@ -5,6 +5,8 @@
#include <memory>
#include <vector>
#include "settings/LanguageType.h"
// xsdCppModule
// xsdCppManualModule -> basePathForIncludes(0, n), sourceFileExtensions(0, n), moduleCompilerOptions(0, n)
// xsdCmakeJsonModule -> rootPathWithFiles(0, n)
@@ -17,7 +19,6 @@ class FilePath;
class IndexerCommand;
class SourceGroupSettings;
class TextAccess;
enum LanguageType;
namespace Sonargraph
{
@@ -37,7 +38,7 @@ namespace Sonargraph
std::set<FilePath> filterToContainedFilePaths(const std::set<FilePath>& filePaths) const;
std::vector<std::shared_ptr<IndexerCommand>> getIndexerCommands(
std::shared_ptr<const SourceGroupSettings> sourceGroupSettings,
std::shared_ptr<const SourceGroupSettings> sourceGroupSettings,
std::shared_ptr<const ApplicationSettings> appSettings) const;
private:
@@ -12,7 +12,6 @@ class ApplicationSettings;
class IndexerCommand;
class SourceGroupSettings;
class TiXmlElement;
enum LanguageType;
namespace Sonargraph
{
@@ -5,13 +5,13 @@
#include <string>
#include <vector>
#include "settings/LanguageType.h"
#include "utility/file/FilePathFilter.h"
class ApplicationSettings;
class IndexerCommand;
class SourceGroupSettings;
class TiXmlElement;
enum LanguageType;
namespace Sonargraph
{
+4 -6
View File
@@ -15,9 +15,8 @@ namespace utility
{
std::vector<const TiXmlElement*> elements;
const TiXmlElement* child = parentElement->FirstChildElement(elementName.c_str());
for (child; child; child = child->NextSiblingElement(elementName.c_str()))
for (const TiXmlElement* child = parentElement->FirstChildElement(elementName.c_str());
child; child = child->NextSiblingElement(elementName.c_str()))
{
elements.push_back(child);
}
@@ -29,9 +28,8 @@ namespace utility
{
std::vector<const TiXmlElement*> elements;
const TiXmlElement* child = parentElement->FirstChildElement();
for (child; child; child = child->NextSiblingElement())
for (const TiXmlElement* child = parentElement->FirstChildElement();
child; child = child->NextSiblingElement())
{
const char* value = child->Attribute(attributeName.c_str());
if (value != nullptr && value == attributeValue)