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-template-vtables \
-Wweak-vtables \ -Wweak-vtables \
-Wwrite-strings \ -Wwrite-strings \
-Wzero-length-array -Wzero-length-array \
-Qunused-arguments \
-fcolor-diagnostics

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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