Issue #77 Style

This commit is contained in:
Mat Sutcliffe
2020-08-23 19:59:44 +01:00
parent d8ae23c2c5
commit 0c78c187f8
21 changed files with 34 additions and 40 deletions

View File

@@ -11,14 +11,14 @@
#ifndef BLACKMISC_ALGORITHM_H
#define BLACKMISC_ALGORITHM_H
#include "blackmisc/integersequence.h"
#include <QThreadStorage>
#include <QRandomGenerator>
#include <QtGlobal>
#include <algorithm>
#include <iterator>
#include <utility>
#include <random>
#include <tuple>
namespace BlackMisc
{

View File

@@ -8,14 +8,14 @@
//! \file
#ifndef BLACKMISC_MACROS_H
#define BLACKMISC_MACROS_H
#ifndef BLACKMISC_BLACKMISCEXPORT_H
#define BLACKMISC_BLACKMISCEXPORT_H
#include <QtGlobal>
/*!
* \def BLACKMISC_EXPORT
* BlackMisc Export Macro
* Export a class or function from the library
*/
#ifndef WITH_STATIC
# if defined(BUILD_BLACKMISC_LIB)
@@ -29,12 +29,12 @@
/*!
* \def BLACKMISC_EXPORT_DECLARE_TEMPLATE
* BlackMisc Export Explicit Template Declaration Macro
* Export explicit template declaration
*/
/*!
* \def BLACKMISC_EXPORT_DEFINE_TEMPLATE
* BlackMisc Export Explicit Template Definition Macro
* Export explicit template definition
*/
#if defined(Q_OS_WIN) && defined(Q_CC_GNU)
# define BLACKMISC_EXPORT_DECLARE_TEMPLATE BLACKMISC_EXPORT

View File

@@ -7,7 +7,9 @@
*/
#include "blackmisc/connectionguard.h"
#include "blackmisc/range.h"
#include "blackmisc/range.h" // for as_const
#include <QObject>
namespace BlackMisc
{

View File

@@ -15,7 +15,6 @@
#include <QList>
#include <QMetaObject>
#include <QObject>
namespace BlackMisc
{

View File

@@ -7,7 +7,6 @@
*/
#include "blackmisc/crashhandler.h"
#include "blackmisc/appstarttime.h"
#include "blackmisc/directoryutils.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/filelogger.h"

View File

@@ -158,7 +158,7 @@ namespace BlackMisc
namespace Private
{
//! \private Needed so we can copy forward-declared CIcon.
//! \private Needed so CValueObjectMetaInfoHelper can copy forward-declared CIcon.
inline void assign(CIcon &a, const CIcon &b) { a = b; }
}

View File

@@ -11,7 +11,7 @@
#ifndef BLACKMISC_INHERITANCE_TRAITS_H
#define BLACKMISC_INHERITANCE_TRAITS_H
#include "blackmisc/typetraits.h"
#include "blackmisc/typetraits.h" // for void_t
#include <QMetaType>
#include <type_traits>

View File

@@ -21,7 +21,6 @@ class QTextStream;
class QObject;
struct QMetaObject;
//! Metadata util functions
namespace BlackMisc
{
//! Display all user metatypes

View File

@@ -11,7 +11,6 @@
#ifndef BLACKMISC_PREDICATES_H
#define BLACKMISC_PREDICATES_H
#include "blackmisc/integersequence.h"
#include "blackmisc/algorithm.h"
#include <QObject>

View File

@@ -36,7 +36,6 @@
template <class T1, class T2> class QMap;
//! Free functions in BlackMisc
namespace BlackMisc
{
//! Return a string with characters removed that match the given predicate.

View File

@@ -8,11 +8,10 @@
//! \file
#ifndef BLACKMISC_CTHREADUTILS_H
#define BLACKMISC_CTHREADUTILS_H
#ifndef BLACKMISC_THREADUTILS_H
#define BLACKMISC_THREADUTILS_H
#include "blackmisc/blackmiscexport.h"
#include <QThread>
#include <functional>

View File

@@ -384,7 +384,7 @@ namespace BlackMisc
{
namespace Private
{
//! \private Needed so we can copy forward-declared CVariant.
//! \private Needed so CValueObjectMetaInfoHelper can copy forward-declared CVariant.
inline void assign(CVariant &a, const CVariant &b) { a = b; }
//! \private

View File

@@ -35,10 +35,10 @@ namespace BlackMisc
namespace Private
{
//! \private Needed so we can copy forward-declared CVariant.
//! \private Defined in variant.h
void assign(CVariant &, const CVariant &);
//! \private Needed so we can copy forward-declared CIcon.
//! \private Defined in icon.h
void assign(CIcon &, const CIcon &);
//! \private Abstract base class representing the set of operations supported by a particular value type.

View File

@@ -13,6 +13,7 @@
#include "blackmisc/blackmiscexport.h"
#include <QString>
#include <QList>
namespace BlackMisc
{