Ignore -Wcpp for gtest.h/gmock.h
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QSignalSpy>
|
#include <QSignalSpy>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QtConcurrentRun>
|
#include <QtConcurrentRun>
|
||||||
#include <QThreadPool>
|
#include <QThreadPool>
|
||||||
|
|||||||
8
tests/src/gmock_include.h
Normal file
8
tests/src/gmock_include.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wcpp"
|
||||||
|
#endif
|
||||||
|
#include <gmock/gmock.h>
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
8
tests/src/gtest_include.h
Normal file
8
tests/src/gtest_include.h
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wcpp"
|
||||||
|
#endif
|
||||||
|
#include <gtest/gtest.h>
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef LOGGING_ENV_H
|
#ifndef LOGGING_ENV_H
|
||||||
#define LOGGING_ENV_H
|
#define LOGGING_ENV_H
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include "core/logging.h"
|
#include "core/logging.h"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#ifdef GUI
|
#ifdef GUI
|
||||||
# include <QApplication>
|
# include <QApplication>
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
#include "core/mergedproxymodel.h"
|
#include "core/mergedproxymodel.h"
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef METATYPES_ENV_H
|
#ifndef METATYPES_ENV_H
|
||||||
#define METATYPES_ENV_H
|
#define METATYPES_ENV_H
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
#include <QModelIndex>
|
#include <QModelIndex>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef MOCKCOLLECTIONBACKEND_H
|
#ifndef MOCKCOLLECTIONBACKEND_H
|
||||||
#define MOCKCOLLECTIONBACKEND_H
|
#define MOCKCOLLECTIONBACKEND_H
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#include "collection/collectionbackend.h"
|
#include "collection/collectionbackend.h"
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef MOCK_NETWORKACCESSMANAGER_H
|
#ifndef MOCK_NETWORKACCESSMANAGER_H
|
||||||
#define MOCK_NETWORKACCESSMANAGER_H
|
#define MOCK_NETWORKACCESSMANAGER_H
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef MOCK_PLAYLISTITEM_H
|
#ifndef MOCK_PLAYLISTITEM_H
|
||||||
#define MOCK_PLAYLISTITEM_H
|
#define MOCK_PLAYLISTITEM_H
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifndef MOCK_SETTINGSPROVIDER_H
|
#ifndef MOCK_SETTINGSPROVIDER_H
|
||||||
#define MOCK_SETTINGSPROVIDER_H
|
#define MOCK_SETTINGSPROVIDER_H
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#include "core/settingsprovider.h"
|
#include "core/settingsprovider.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include "includes/mutex_protected.h"
|
#include "includes/mutex_protected.h"
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
|
|
||||||
#include "constants/timeconstants.h"
|
#include "constants/timeconstants.h"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QResource>
|
#include <QResource>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QTemporaryFile>
|
#include <QTemporaryFile>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <sqlite3.h>
|
#include <sqlite3.h>
|
||||||
|
|
||||||
// clazy:excludeall=returning-void-expression
|
// clazy:excludeall=returning-void-expression
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <gmock/gmock.h>
|
#include "gtest_include.h"
|
||||||
#include <gtest/gtest.h>
|
#include "gmock_include.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include "gtest_include.h"
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|||||||
Reference in New Issue
Block a user