Ladybird: Define AK_DONT_REPLACE_STD via CMake rather than in every file

This commit is contained in:
Timothy Flynn 2023-04-24 07:16:37 -04:00 committed by Andreas Kling
parent 269c25e1d2
commit 8fe846eb7f
Notes: sideshowbarker 2024-07-17 05:02:42 +09:00
22 changed files with 2 additions and 46 deletions

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include <AK/DeprecatedString.h>
#include <AK/LexicalPath.h>
#include <AK/Platform.h>

View File

@ -66,6 +66,7 @@ else()
set(SERENITY_SOURCE_DIR "${SERENITY_PROJECT_ROOT}")
endif()
add_compile_options(-DAK_DONT_REPLACE_STD)
add_compile_options(-Wno-expansion-to-defined)
add_compile_options(-Wno-user-defined-literals)

View File

@ -7,8 +7,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "ConsoleWidget.h"
#include "Utilities.h"
#include "WebContentView.h"

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "EventLoopPluginQt.h"
#include "TimerQt.h"
#include <AK/Function.h>

View File

@ -5,8 +5,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "FontPluginQt.h"
#include <AK/DeprecatedString.h>
#include <AK/String.h>

View File

@ -6,8 +6,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include <AK/Error.h>
#include <AK/Optional.h>
#include <AK/Span.h>

View File

@ -5,8 +5,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "ImageCodecPluginLadybird.h"
#include <LibGfx/Bitmap.h>
#include <LibGfx/ImageFormats/ImageDecoder.h>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include <LibWebView/AccessibilityTreeModel.h>
#include <LibWebView/DOMTreeModel.h>
#include <LibWebView/StylePropertiesModel.h>

View File

@ -6,8 +6,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include <QLineEdit>
class LocationEdit final : public QLineEdit {

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "ModelTranslator.h"
#include "Utilities.h"
#include <QIcon>

View File

@ -6,8 +6,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include <LibWeb/Loader/ResourceLoader.h>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include <AK/DeprecatedString.h>
#include <LibCore/ArgsParser.h>
#include <LibCore/Directory.h>

View File

@ -6,8 +6,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include <AK/DeprecatedString.h>
#include <QSettings>

View File

@ -7,8 +7,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include "LocationEdit.h"
#include "WebContentView.h"
#include <Browser/History.h>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "TimerQt.h"
#include <AK/NonnullRefPtr.h>
#include <QTimer>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "Utilities.h"
#include <AK/LexicalPath.h>
#include <AK/Platform.h>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "../EventLoopPluginQt.h"
#include "../FontPluginQt.h"
#include "../ImageCodecPluginLadybird.h"

View File

@ -5,8 +5,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "WebContentView.h"
#include "ConsoleWidget.h"
#include "HelperProcess.h"

View File

@ -7,8 +7,6 @@
#pragma once
#define AK_DONT_REPLACE_STD
#include <AK/DeprecatedString.h>
#include <AK/Function.h>
#include <AK/HashMap.h>

View File

@ -4,8 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "../HelperProcess.h"
#include "../Utilities.h"
#include <AK/Platform.h>

View File

@ -7,8 +7,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#define AK_DONT_REPLACE_STD
#include "WebSocketImplQt.h"
#include "Utilities.h"
#include <LibCore/EventLoop.h>

View File

@ -5,17 +5,12 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Platform.h>
#if !defined(AK_OS_SERENITY)
# define AK_DONT_REPLACE_STD
#endif
#include <AK/Badge.h>
#include <AK/DeprecatedString.h>
#include <AK/Function.h>
#include <AK/LexicalPath.h>
#include <AK/NonnullOwnPtr.h>
#include <AK/Platform.h>
#include <AK/String.h>
#include <AK/URL.h>
#include <AK/Vector.h>