Skip to content

Commit

Permalink
refactor: Rename remaining "black" identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ltoenning committed Nov 11, 2024
1 parent 303f370 commit e359930
Show file tree
Hide file tree
Showing 579 changed files with 1,758 additions and 1,869 deletions.
3 changes: 1 addition & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,5 @@ WhitespaceSensitiveMacros:
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
- BLACK_METACLASS
- SWIFT_METACLASS
...

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ endif()
add_compile_definitions(QT_NO_DEPRECATED_WARNINGS)

if(SWIFT_USE_CRASHPAD)
add_compile_definitions(BLACK_USE_CRASHPAD)
add_compile_definitions(SWIFT_USE_CRASHPAD)
endif()

if(APPLE)
Expand Down
4 changes: 2 additions & 2 deletions samples/hotkey/samplehotkey.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1

#ifndef BLACKSAMPLE_WEATHERDATA_H
#define BLACKSAMPLE_WEATHERDATA_H
#ifndef SWIFT_SAMPLE_WEATHERDATA_H
#define SWIFT_SAMPLE_WEATHERDATA_H

// just a dummy header, documentation will go here

Expand Down
2 changes: 1 addition & 1 deletion samples/misc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! \ingroup samplekmisc

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;

//! main
Expand Down
4 changes: 2 additions & 2 deletions samples/misc/samplemisc.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1

#ifndef BLACKSAMPLE_BLACKMISC_H
#define BLACKSAMPLE_BLACKMISC_H
#ifndef SWIFT_SAMPLE_SWIFT_MISC_H
#define SWIFT_SAMPLE_SWIFT_MISC_H

// just a dummy header, documentation will go here

Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesalgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <ctime>
#include <numeric>

namespace BlackSample
namespace swift::sample
{
int CSamplesAlgorithm::samples()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplesalgorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESALGORITHM_H
#define BLACKSAMPLE_SAMPLESALGORITHM_H
#ifndef SWIFT_SAMPLE_SAMPLESALGORITHM_H
#define SWIFT_SAMPLE_SAMPLESALGORITHM_H

namespace BlackSample
namespace swift::sample
{
//! Samples for our algorithms
class CSamplesAlgorithm
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/sampleschangeobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;
using namespace swift::misc::network;

namespace BlackSample
namespace swift::sample
{
int CSamplesChangeObject::samples()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/sampleschangeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESCHANGEDATA_H
#define BLACKSAMPLE_SAMPLESCHANGEDATA_H
#ifndef SWIFT_SAMPLE_SAMPLESCHANGEDATA_H
#define SWIFT_SAMPLE_SAMPLESCHANGEDATA_H

namespace BlackSample
namespace swift::sample
{
//! Samples for metadata
class CSamplesChangeObject
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplescontainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesContainer::samples()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplescontainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESCONTAINER_H
#define BLACKSAMPLE_SAMPLESCONTAINER_H
#ifndef SWIFT_SAMPLE_SAMPLESCONTAINER_H
#define SWIFT_SAMPLE_SAMPLESCONTAINER_H

namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesContainer
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using namespace swift::misc;

namespace BlackSample
namespace swift::sample
{
int CSamplesFile::samples(QTextStream &out)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplesfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESFILE_H
#define BLACKSAMPLE_SAMPLESFILE_H
#ifndef SWIFT_SAMPLE_SAMPLESFILE_H
#define SWIFT_SAMPLE_SAMPLESFILE_H

#include <QTextStream>

namespace BlackSample
namespace swift::sample
{
//! Samples for file/directory
class CSamplesFile
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesjson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesJson::samples()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplesjson.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESJSON_H
#define BLACKSAMPLE_SAMPLESJSON_H
#ifndef SWIFT_SAMPLE_SAMPLESJSON_H
#define SWIFT_SAMPLE_SAMPLESJSON_H

namespace BlackSample
namespace swift::sample
{

//! Samples for metadata
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesmetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <stdio.h>
#include <QTextStream>

namespace BlackSample
namespace swift::sample
{
int CSamplesMetadata::samples()
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplesmetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESMETADATA_H
#define BLACKSAMPLE_SAMPLESMETADATA_H
#ifndef SWIFT_SAMPLE_SAMPLESMETADATA_H
#define SWIFT_SAMPLE_SAMPLESMETADATA_H

namespace BlackSample
namespace swift::sample
{

//! Samples for metadata
Expand Down
2 changes: 1 addition & 1 deletion samples/misc/samplesperformance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ using namespace swift::misc::simulation;
using namespace swift::misc::test;
using namespace swift::core::db;

namespace BlackSample
namespace swift::sample
{
int CSamplesPerformance::samplesMisc(QTextStream &out)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/misc/samplesperformance.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//! \file
//! \ingroup samplemisc

#ifndef BLACKSAMPLE_SAMPLESPERFORMANCE_H
#define BLACKSAMPLE_SAMPLESPERFORMANCE_H
#ifndef SWIFT_SAMPLE_SAMPLESPERFORMANCE_H
#define SWIFT_SAMPLE_SAMPLESPERFORMANCE_H

#include "misc/simulation/aircraftmodellist.h"
#include "misc/aviation/aircraftsituationlist.h"
Expand All @@ -18,7 +18,7 @@

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesPerformance
Expand Down
6 changes: 3 additions & 3 deletions samples/miscdbus/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ int main(int argc, char *argv[])
// run tests
if (cmdlineArgs.contains("testservice", Qt::CaseInsensitive))
{
BlackSample::ServiceTool::dataTransferTestClient(address);
swift::sample::ServiceTool::dataTransferTestClient(address);
}

// loop
Expand Down Expand Up @@ -175,14 +175,14 @@ int main(int argc, char *argv[])
// run tests
if (mode == "testservice")
{
BlackSample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
swift::sample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
}

// testing in new process
CProcessCtrl::startDetached(executable, args, true);

// testing in same process
// BlackSample::ServiceTool::dataTransferTestClient(address);
// swift::sample::ServiceTool::dataTransferTestClient(address);

// loop
return a.exec();
Expand Down
4 changes: 2 additions & 2 deletions samples/miscdbus/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ qdbuscpp2xml datacontext.h -x misc_cpp2xml.dll -o MiscTest.Datacontext.xml
Set search path for plugins: env.var. QT_PLUGIN_PATH

Done automatically (qmake), but if required manually
Interface: qdbusxml2cpp blackbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp blackbus.testservice.xml -a atestservice
Interface: qdbusxml2cpp swiftbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp swiftbus.testservice.xml -a atestservice

-- Removed after changing to "handwritten" interface

Expand Down
4 changes: 2 additions & 2 deletions samples/miscdbus/samplemiscdbus.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1

#ifndef BLACKSAMPLE_BLACKMISCDBUS_H
#define BLACKSAMPLE_BLACKMISCDBUS_H
#ifndef SWIFT_SAMPLE_SWIFT_MISCDBUS_H
#define SWIFT_SAMPLE_SWIFT_MISCDBUS_H

// just a dummy header, documentation will go here

Expand Down
2 changes: 1 addition & 1 deletion samples/miscdbus/servicetool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::test;
using namespace swift::core;

namespace BlackSample
namespace swift::sample
{
void ServiceTool::dataTransferTestServer(CDBusServer *dBusServer, bool verbose)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/miscdbus/servicetool.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//! \file
//! \ingroup samplemiscdbus

#ifndef BLACKSAMPLE_SERVICETOOL_H
#define BLACKSAMPLE_SERVICETOOL_H
#ifndef SWIFT_SAMPLE_SERVICETOOL_H
#define SWIFT_SAMPLE_SERVICETOOL_H

#include <QCoreApplication>
#include <QDBusArgument>
Expand All @@ -21,7 +21,7 @@ namespace swift::misc
{
class CDBusServer;
}
namespace BlackSample
namespace swift::sample
{
class Testservice; // forward declaration

Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <QtGlobal>

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;

//! main
Expand Down
4 changes: 2 additions & 2 deletions samples/miscquantities/samplemiscquantities.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1

#ifndef BLACKSAMPLE_BLACKMISCQUANTITIES_H
#define BLACKSAMPLE_BLACKMISCQUANTITIES_H
#ifndef SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H
#define SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H

// just a dummy header, documentation will go here

Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesaviation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;

namespace BlackSample
namespace swift::sample
{
int CSamplesAviation::samples(QTextStream &out)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/miscquantities/samplesaviation.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities

#ifndef BLACKSAMPLE_SAMPLESAVIATION_H
#define BLACKSAMPLE_SAMPLESAVIATION_H
#ifndef SWIFT_SAMPLE_SAMPLESAVIATION_H
#define SWIFT_SAMPLE_SAMPLESAVIATION_H

class QTextStream;

namespace BlackSample
namespace swift::sample
{

//! Samples for aviation
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesgeo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;

namespace BlackSample
namespace swift::sample
{
int CSamplesGeo::samples(QTextStream &out)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/miscquantities/samplesgeo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities

#ifndef BLACKSAMPLE_SAMPLESGEO_H
#define BLACKSAMPLE_SAMPLESGEO_H
#ifndef SWIFT_SAMPLE_SAMPLESGEO_H
#define SWIFT_SAMPLE_SAMPLESGEO_H

class QTextStream;

namespace BlackSample
namespace swift::sample
{
//! Samples for physical quantities
class CSamplesGeo
Expand Down
2 changes: 1 addition & 1 deletion samples/miscquantities/samplesphysicalquantities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using namespace swift::misc;
using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;

namespace BlackSample
namespace swift::sample
{
int CSamplesPhysicalQuantities::samples(QTextStream &out)
{
Expand Down
6 changes: 3 additions & 3 deletions samples/miscquantities/samplesphysicalquantities.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities

#ifndef BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
#define BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
#ifndef SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H
#define SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H

class QTextStream;

namespace BlackSample
namespace swift::sample
{

//! Samples for physical quantities
Expand Down
2 changes: 1 addition & 1 deletion samples/miscsim/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <QtGlobal>

using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;

//! main
int main(int argc, char *argv[])
Expand Down
Loading

0 comments on commit e359930

Please sign in to comment.