Building with Clang.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-03 13:32:12 +03:00
parent 26a95e0964
commit ea9ba2a11a
24 changed files with 30 additions and 6 deletions

View File

@ -449,4 +449,6 @@ CLANG_CXXFLAGS += \
-Wweak-template-vtables \
-Wweak-vtables \
-Wwrite-strings \
-Wzero-length-array
-Wzero-length-array \
-Qunused-arguments \
-fcolor-diagnostics

View File

@ -90,9 +90,11 @@ TRANSLATIONS += share/translations/valentina.ts \
unix {
*-g++{
QMAKE_CC = ccache gcc
QMAKE_CXX = ccache g++
}
clang*{
QMAKE_CC = ccache clang
QMAKE_CXX = ccache clang++
}
}

View File

@ -30,6 +30,7 @@
#include "../container/calculator.h"
#include "../container/vcontainer.h"
#include "../core/vapplication.h"
#include <QDebug>
//VFormula
//---------------------------------------------------------------------------------------------------------------------

View File

@ -39,6 +39,7 @@
#include <QDir>
#include <QProcess>
#include <QUndoStack>
#include <QtCore/qmath.h>
const qreal VApplication::PrintDPI = 96.0;

View File

@ -39,6 +39,7 @@
#include <QCloseEvent>
#include <QTableWidget>
#include <QSettings>
#include <QTableWidgetItem>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -34,6 +34,7 @@
class VIndividualMeasurements;
class QTableWidget;
class QTableWidgetItem;
namespace Ui
{

View File

@ -31,6 +31,7 @@
#include <QDialog>
#include "../../options.h"
#include <QMap>
class VPattern;
class QCheckBox;

View File

@ -34,6 +34,7 @@
#include "../../visualization/vistoolendline.h"
#include "../../widgets/vmaingraphicsscene.h"
#include "../../tools/vabstracttool.h"
#include <QTimer>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -32,6 +32,7 @@
#include "../../geometry/vpointf.h"
#include "../../container/vcontainer.h"
#include "../../visualization/vistoolspline.h"
#include <QDebug>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -29,6 +29,7 @@
#include "vabstractcurve.h"
#include <QPainterPath>
#include <QDebug>
VAbstractCurve::VAbstractCurve(const GOType &type, const quint32 &idObject, const Draw &mode)
:VGObject(type, idObject, mode)

View File

@ -32,6 +32,7 @@
#include <QSharedData>
#include "../options.h"
#include "vpointf.h"
#include <QDebug>
#ifdef Q_CC_GNU
#pragma GCC diagnostic push

View File

@ -38,6 +38,7 @@
#include <QCommandLineParser>
#endif
#include <QtXml>
#include <QLibraryInfo>
#include "tablewindow.h"
#include "version.h"

View File

@ -54,6 +54,7 @@
#include <QAction>
#include <QProcess>
#include <QSettings>
#include <QTimer>
//---------------------------------------------------------------------------------------------------------------------
/**

View File

@ -30,13 +30,12 @@
#define OPTIONS_H
#include <csignal>
#include <QtGlobal>
#ifdef Q_OS_WIN32
# include <Windows.h>
#endif /*Q_OS_WIN32*/
#include <QtGlobal>
class QString;
class QStringList;

View File

@ -35,10 +35,10 @@
#endif
/* Add C includes here */
#include <csignal>
#if defined __cplusplus
/* Add C++ includes here */
#include <csignal>
/*In all cases we need include core header for getting defined values*/
#ifdef QT_CORE_LIB

View File

@ -30,6 +30,7 @@
#include "../../dialogs/tools/dialogtriangle.h"
#include "../../geometry/vpointf.h"
#include "../../visualization/vistooltriangle.h"
#include <QtCore/qmath.h>
const QString VToolTriangle::ToolType = QStringLiteral("triangle");

View File

@ -28,6 +28,7 @@
#include "visline.h"
#include "../tools/drawTools/vdrawtool.h"
#include <QtCore/qmath.h>
//---------------------------------------------------------------------------------------------------------------------
VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)

View File

@ -30,6 +30,7 @@
#include "../geometry/vpointf.h"
#include "../container/vcontainer.h"
#include "../tools/drawTools/vtooltriangle.h"
#include <QtCore/qmath.h>
//---------------------------------------------------------------------------------------------------------------------
VisToolTriangle::VisToolTriangle(const VContainer *data, QGraphicsItem *parent)

View File

@ -45,6 +45,7 @@
#include <QMessageBox>
#include <QUndoStack>
#include <QtCore/qmath.h>
const QString VPattern::TagPattern = QStringLiteral("pattern");
const QString VPattern::TagCalculation = QStringLiteral("calculation");

View File

@ -23,6 +23,7 @@
#include "qmuparser.h"
#include <QtGlobal>
#include <QtCore/qmath.h>
using namespace std;

View File

@ -54,10 +54,11 @@ unix {
INSTALLS += target
*-g++{
QMAKE_CC = ccache gcc
QMAKE_CXX = ccache g++
}
clang*{
QMAKE_CC = ccache clang
QMAKE_CXX = ccache clang++
}
}

View File

@ -26,6 +26,7 @@
#ifdef QMUP_USE_OPENMP
#include <omp.h>
#endif
#include <QtCore/qmath.h>
using namespace std;

View File

@ -26,6 +26,8 @@
#include <QString>
#include <QDebug>
#include "qmuparsertoken.h"
#include <QtCore/qmath.h>
#include <QtGlobal>
namespace qmu
{

View File

@ -97,10 +97,11 @@ unix {
INSTALLS += target
*-g++{
QMAKE_CC = ccache gcc
QMAKE_CXX = ccache g++
}
clang*{
QMAKE_CC = ccache clang
QMAKE_CXX = ccache clang++
}
}