Building with Clang.
--HG-- branch : develop
This commit is contained in:
parent
26a95e0964
commit
ea9ba2a11a
|
@ -449,4 +449,6 @@ CLANG_CXXFLAGS += \
|
|||
-Wweak-template-vtables \
|
||||
-Wweak-vtables \
|
||||
-Wwrite-strings \
|
||||
-Wzero-length-array
|
||||
-Wzero-length-array \
|
||||
-Qunused-arguments \
|
||||
-fcolor-diagnostics
|
||||
|
|
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include "../container/calculator.h"
|
||||
#include "../container/vcontainer.h"
|
||||
#include "../core/vapplication.h"
|
||||
#include <QDebug>
|
||||
|
||||
//VFormula
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include <QDir>
|
||||
#include <QProcess>
|
||||
#include <QUndoStack>
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
const qreal VApplication::PrintDPI = 96.0;
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#include <QCloseEvent>
|
||||
#include <QTableWidget>
|
||||
#include <QSettings>
|
||||
#include <QTableWidgetItem>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
class VIndividualMeasurements;
|
||||
class QTableWidget;
|
||||
class QTableWidgetItem;
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
#include <QDialog>
|
||||
#include "../../options.h"
|
||||
#include <QMap>
|
||||
|
||||
class VPattern;
|
||||
class QCheckBox;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "../../visualization/vistoolendline.h"
|
||||
#include "../../widgets/vmaingraphicsscene.h"
|
||||
#include "../../tools/vabstracttool.h"
|
||||
#include <QTimer>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "../../geometry/vpointf.h"
|
||||
#include "../../container/vcontainer.h"
|
||||
#include "../../visualization/vistoolspline.h"
|
||||
#include <QDebug>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <QSharedData>
|
||||
#include "../options.h"
|
||||
#include "vpointf.h"
|
||||
#include <QDebug>
|
||||
|
||||
#ifdef Q_CC_GNU
|
||||
#pragma GCC diagnostic push
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include <QCommandLineParser>
|
||||
#endif
|
||||
|
||||
#include <QtXml>
|
||||
#include <QLibraryInfo>
|
||||
#include "tablewindow.h"
|
||||
#include "version.h"
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
#include <QAction>
|
||||
#include <QProcess>
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "visline.h"
|
||||
#include "../tools/drawTools/vdrawtool.h"
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
VisLine::VisLine(const VContainer *data, QGraphicsItem *parent)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
|
||||
#include <QMessageBox>
|
||||
#include <QUndoStack>
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
const QString VPattern::TagPattern = QStringLiteral("pattern");
|
||||
const QString VPattern::TagCalculation = QStringLiteral("calculation");
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
#include "qmuparser.h"
|
||||
|
||||
#include <QtGlobal>
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#ifdef QMUP_USE_OPENMP
|
||||
#include <omp.h>
|
||||
#endif
|
||||
#include <QtCore/qmath.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include <QString>
|
||||
#include <QDebug>
|
||||
#include "qmuparsertoken.h"
|
||||
#include <QtCore/qmath.h>
|
||||
#include <QtGlobal>
|
||||
|
||||
namespace qmu
|
||||
{
|
||||
|
|
|
@ -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++
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user