Meta+AK: Clear out unused debug macro definitions

This commit is contained in:
circl 2024-06-08 20:36:23 +02:00 committed by Andreas Kling
parent 75e11249d3
commit 666f7338a0
Notes: sideshowbarker 2024-07-16 22:51:10 +09:00
3 changed files with 14 additions and 499 deletions

View file

@ -1,15 +1,11 @@
/*
* Copyright (c) 2020-2022, the SerenityOS developers.
* Copyright (c) 2020-2024, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#ifndef AFLACLOADER_DEBUG
# cmakedefine01 AFLACLOADER_DEBUG
#endif
#ifndef AUDIO_DEBUG
# cmakedefine01 AUDIO_DEBUG
#endif
@ -18,6 +14,10 @@
# cmakedefine01 AWAVLOADER_DEBUG
#endif
#ifndef AFLACLOADER_DEBUG
# cmakedefine01 AFLACLOADER_DEBUG
#endif
#ifndef BMP_DEBUG
# cmakedefine01 BMP_DEBUG
#endif
@ -38,30 +38,6 @@
# cmakedefine01 CANVAS_RENDERING_CONTEXT_2D_DEBUG
#endif
#ifndef CFF_DEBUG
# cmakedefine01 CFF_DEBUG
#endif
#ifndef CMAKE_DEBUG
# cmakedefine01 CMAKE_DEBUG
#endif
#ifndef COMPOSE_DEBUG
# cmakedefine01 COMPOSE_DEBUG
#endif
#ifndef COPY_DEBUG
# cmakedefine01 COPY_DEBUG
#endif
#ifndef CPP_DEBUG
# cmakedefine01 CPP_DEBUG
#endif
#ifndef CPP_LANGUAGE_SERVER_DEBUG
# cmakedefine01 CPP_LANGUAGE_SERVER_DEBUG
#endif
#ifndef CRYPTO_DEBUG
# cmakedefine01 CRYPTO_DEBUG
#endif
@ -82,66 +58,14 @@
# cmakedefine01 DDS_DEBUG
#endif
#ifndef DHCPV4_DEBUG
# cmakedefine01 DHCPV4_DEBUG
#endif
#ifndef DHCPV4CLIENT_DEBUG
# cmakedefine01 DHCPV4CLIENT_DEBUG
#endif
#ifndef DIFF_DEBUG
# cmakedefine01 DIFF_DEBUG
#endif
#ifndef DISASM_DUMP_DEBUG
# cmakedefine01 DISASM_DUMP_DEBUG
#endif
#ifndef DOUBLECLICK_DEBUG
# cmakedefine01 DOUBLECLICK_DEBUG
#endif
#ifndef DRAG_DEBUG
# cmakedefine01 DRAG_DEBUG
#endif
#ifndef DWARF_DEBUG
# cmakedefine01 DWARF_DEBUG
#endif
#ifndef DYNAMIC_LOAD_DEBUG
# cmakedefine01 DYNAMIC_LOAD_DEBUG
#endif
#ifndef EDITOR_DEBUG
# cmakedefine01 EDITOR_DEBUG
#endif
#ifndef ELF_IMAGE_DEBUG
# cmakedefine01 ELF_IMAGE_DEBUG
#endif
#ifndef EMOJI_DEBUG
# cmakedefine01 EMOJI_DEBUG
#endif
#ifndef ESCAPE_SEQUENCE_DEBUG
# cmakedefine01 ESCAPE_SEQUENCE_DEBUG
#endif
#ifndef EVENT_DEBUG
# cmakedefine01 EVENT_DEBUG
#endif
#ifndef FILE_CONTENT_DEBUG
# cmakedefine01 FILE_CONTENT_DEBUG
#endif
#ifndef FILL_PATH_DEBUG
# cmakedefine01 FILL_PATH_DEBUG
#endif
#ifndef FILE_WATCHER_DEBUG
# cmakedefine01 FILE_WATCHER_DEBUG
#endif
@ -150,10 +74,6 @@
# cmakedefine01 FLAC_ENCODER_DEBUG
#endif
#ifndef GEMINI_DEBUG
# cmakedefine01 GEMINI_DEBUG
#endif
#ifndef GENERATE_DEBUG
# cmakedefine01 GENERATE_DEBUG
#endif
@ -166,30 +86,10 @@
# cmakedefine01 GIF_DEBUG
#endif
#ifndef GL_DEBUG
# cmakedefine01 GL_DEBUG
#endif
#ifndef GLOBAL_DTORS_DEBUG
# cmakedefine01 GLOBAL_DTORS_DEBUG
#endif
#ifndef GPT_DEBUG
# cmakedefine01 GPT_DEBUG
#endif
#ifndef HEAP_DEBUG
# cmakedefine01 HEAP_DEBUG
#endif
#ifndef HEARTS_DEBUG
# cmakedefine01 HEARTS_DEBUG
#endif
#ifndef HEX_DEBUG
# cmakedefine01 HEX_DEBUG
#endif
#ifndef HIGHLIGHT_FOCUSED_FRAME_DEBUG
# cmakedefine01 HIGHLIGHT_FOCUSED_FRAME_DEBUG
#endif
@ -226,14 +126,6 @@
# cmakedefine01 IMAGE_LOADER_DEBUG
#endif
#ifndef IMAP_PARSER_DEBUG
# cmakedefine01 IMAP_PARSER_DEBUG
#endif
#ifndef ITEM_RECTS_DEBUG
# cmakedefine01 ITEM_RECTS_DEBUG
#endif
#ifndef JBIG2_DEBUG
# cmakedefine01 JBIG2_DEBUG
#endif
@ -258,38 +150,22 @@
# cmakedefine01 JS_MODULE_DEBUG
#endif
#ifndef KEYBOARD_SHORTCUTS_DEBUG
# cmakedefine01 KEYBOARD_SHORTCUTS_DEBUG
#endif
#ifndef LANGUAGE_SERVER_DEBUG
# cmakedefine01 LANGUAGE_SERVER_DEBUG
#endif
#ifndef LEXER_DEBUG
# cmakedefine01 LEXER_DEBUG
#endif
#ifndef LIBWEB_CSS_DEBUG
# cmakedefine01 LIBWEB_CSS_DEBUG
#endif
#ifndef LIBWEB_CSS_ANIMATION_DEBUG
# cmakedefine01 LIBWEB_CSS_ANIMATION_DEBUG
#endif
#ifndef LIBWEB_CSS_DEBUG
# cmakedefine01 LIBWEB_CSS_DEBUG
#endif
#ifndef LINE_EDITOR_DEBUG
# cmakedefine01 LINE_EDITOR_DEBUG
#endif
#ifndef LOG_DEBUG
# cmakedefine01 LOG_DEBUG
#endif
#ifndef LOOKUPSERVER_DEBUG
# cmakedefine01 LOOKUPSERVER_DEBUG
#endif
#ifndef LZMA_DEBUG
# cmakedefine01 LZMA_DEBUG
#endif
@ -302,14 +178,6 @@
# cmakedefine01 MACH_PORT_DEBUG
#endif
#ifndef MALLOC_DEBUG
# cmakedefine01 MALLOC_DEBUG
#endif
#ifndef MARKDOWN_DEBUG
# cmakedefine01 MARKDOWN_DEBUG
#endif
#ifndef MATROSKA_DEBUG
# cmakedefine01 MATROSKA_DEBUG
#endif
@ -318,22 +186,6 @@
# cmakedefine01 MATROSKA_TRACE_DEBUG
#endif
#ifndef MBR_DEBUG
# cmakedefine01 MBR_DEBUG
#endif
#ifndef MEMORY_DEBUG
# cmakedefine01 MEMORY_DEBUG
#endif
#ifndef MENU_DEBUG
# cmakedefine01 MENU_DEBUG
#endif
#ifndef MOVE_DEBUG
# cmakedefine01 MOVE_DEBUG
#endif
#ifndef NETWORKJOB_DEBUG
# cmakedefine01 NETWORKJOB_DEBUG
#endif
@ -342,10 +194,6 @@
# cmakedefine01 NT_DEBUG
#endif
#ifndef OCCLUSIONS_DEBUG
# cmakedefine01 OCCLUSIONS_DEBUG
#endif
#ifndef OPENTYPE_GPOS_DEBUG
# cmakedefine01 OPENTYPE_GPOS_DEBUG
#endif
@ -358,10 +206,6 @@
# cmakedefine01 PATH_DEBUG
#endif
#ifndef PDF_DEBUG
# cmakedefine01 PDF_DEBUG
#endif
#ifndef PLAYBACK_MANAGER_DEBUG
# cmakedefine01 PLAYBACK_MANAGER_DEBUG
#endif
@ -378,14 +222,6 @@
# cmakedefine01 PROMISE_DEBUG
#endif
#ifndef PTHREAD_DEBUG
# cmakedefine01 PTHREAD_DEBUG
#endif
#ifndef REACHABLE_DEBUG
# cmakedefine01 REACHABLE_DEBUG
#endif
#ifndef REGEX_DEBUG
# cmakedefine01 REGEX_DEBUG
#endif
@ -394,10 +230,6 @@
# cmakedefine01 REQUESTSERVER_DEBUG
#endif
#ifndef RESIZE_DEBUG
# cmakedefine01 RESIZE_DEBUG
#endif
#ifndef RESOURCE_DEBUG
# cmakedefine01 RESOURCE_DEBUG
#endif
@ -406,66 +238,18 @@
# cmakedefine01 RSA_PARSE_DEBUG
#endif
#ifndef SERVICE_DEBUG
# cmakedefine01 SERVICE_DEBUG
#endif
#ifndef SH_DEBUG
# cmakedefine01 SH_DEBUG
#endif
#ifndef SH_LANGUAGE_SERVER_DEBUG
# cmakedefine01 SH_LANGUAGE_SERVER_DEBUG
#endif
#ifndef SHARED_QUEUE_DEBUG
# cmakedefine01 SHARED_QUEUE_DEBUG
#endif
#ifndef SHELL_JOB_DEBUG
# cmakedefine01 SHELL_JOB_DEBUG
#endif
#ifndef SHELL_POSIX_PARSER_DEBUG
# cmakedefine01 SHELL_POSIX_PARSER_DEBUG
#endif
#ifndef SOLITAIRE_DEBUG
# cmakedefine01 SOLITAIRE_DEBUG
#endif
#ifndef SPAM_DEBUG
# cmakedefine01 SPAM_DEBUG
#endif
#ifndef SPICE_AGENT_DEBUG
# cmakedefine01 SPICE_AGENT_DEBUG
#endif
#ifndef SYNTAX_HIGHLIGHTING_DEBUG
# cmakedefine01 SYNTAX_HIGHLIGHTING_DEBUG
#endif
#ifndef SYSCALL_1_DEBUG
# cmakedefine01 SYSCALL_1_DEBUG
#endif
#ifndef SYSTEM_MENU_DEBUG
# cmakedefine01 SYSTEM_MENU_DEBUG
#endif
#ifndef SYSTEMSERVER_DEBUG
# cmakedefine01 SYSTEMSERVER_DEBUG
#endif
#ifndef TERMCAP_DEBUG
# cmakedefine01 TERMCAP_DEBUG
#endif
#ifndef TERMINAL_DEBUG
# cmakedefine01 TERMINAL_DEBUG
#endif
#ifndef TEXTEDITOR_DEBUG
# cmakedefine01 TEXTEDITOR_DEBUG
#endif
@ -490,14 +274,6 @@
# cmakedefine01 TOKENIZER_TRACE_DEBUG
#endif
#ifndef UCI_DEBUG
# cmakedefine01 UCI_DEBUG
#endif
#ifndef UPDATE_COALESCING_DEBUG
# cmakedefine01 UPDATE_COALESCING_DEBUG
#endif
#ifndef URL_PARSER_DEBUG
# cmakedefine01 URL_PARSER_DEBUG
#endif
@ -542,10 +318,6 @@
# cmakedefine01 WEBGL_CONTEXT_DEBUG
#endif
#ifndef WEBSERVER_DEBUG
# cmakedefine01 WEBSERVER_DEBUG
#endif
#ifndef WEB_FETCH_DEBUG
# cmakedefine01 WEB_FETCH_DEBUG
#endif
@ -558,22 +330,10 @@
# cmakedefine01 WEBP_DEBUG
#endif
#ifndef WINDOWMANAGER_DEBUG
# cmakedefine01 WINDOWMANAGER_DEBUG
#endif
#ifndef WORKER_THREAD_DEBUG
# cmakedefine01 WORKER_THREAD_DEBUG
#endif
#ifndef WSMESSAGELOOP_DEBUG
# cmakedefine01 WSMESSAGELOOP_DEBUG
#endif
#ifndef WSSCREEN_DEBUG
# cmakedefine01 WSSCREEN_DEBUG
#endif
#ifndef XML_PARSER_DEBUG
# cmakedefine01 XML_PARSER_DEBUG
#endif

View file

@ -1,213 +1,72 @@
set(AC97_DEBUG ON)
set(ACPI_DEBUG ON)
set(AHCI_DEBUG ON)
set(APIC_DEBUG ON)
set(APIC_SMP_DEBUG ON)
set(ARP_DEBUG ON)
set(ATA_DEBUG ON)
set(AUDIO_DEBUG ON)
set(AWAVLOADER_DEBUG ON)
set(AFLACLOADER_DEBUG ON)
set(BBFS_DEBUG ON)
set(BMP_DEBUG ON)
set(BXVGA_DEBUG ON)
set(CACHE_DEBUG ON)
set(CALLBACK_MACHINE_DEBUG ON)
set(CANVAS_RENDERING_CONTEXT_2D_DEBUG ON)
set(CFF_DEBUG ON)
set(CMAKE_DEBUG ON)
set(COMMIT_DEBUG ON)
set(COMPOSE_DEBUG ON)
set(CONTEXT_SWITCH_DEBUG ON)
set(COPY_DEBUG ON)
set(CPP_DEBUG ON)
set(CPP_LANGUAGE_SERVER_DEBUG ON)
set(CRYPTO_DEBUG ON)
set(CSS_LOADER_DEBUG ON)
set(CSS_PARSER_DEBUG ON)
set(CSS_TOKENIZER_DEBUG ON)
set(DDS_DEBUG ON)
set(DHCPV4CLIENT_DEBUG ON)
set(DHCPV4_DEBUG ON)
set(DIFF_DEBUG ON)
set(DISASM_DUMP_DEBUG ON)
set(DOUBLECLICK_DEBUG ON)
set(DRAG_DEBUG ON)
set(DUMP_REGIONS_ON_CRASH ON)
set(DWARF_DEBUG ON)
set(DYNAMIC_LOAD_DEBUG ON)
set(E1000_DEBUG ON)
set(EDITOR_DEBUG ON)
set(ELF_IMAGE_DEBUG ON)
set(EMOJI_DEBUG ON)
set(ESCAPE_SEQUENCE_DEBUG ON)
set(ETHERNET_DEBUG ON)
set(EVENT_DEBUG ON)
set(EXEC_DEBUG ON)
set(EXT2_BLOCKLIST_DEBUG ON)
set(EXT2_DEBUG ON)
set(EXT2_VERY_DEBUG ON)
set(FAT_DEBUG ON)
set(FILE_CONTENT_DEBUG ON)
set(FILE_WATCHER_DEBUG ON)
set(FILL_PATH_DEBUG ON)
set(FLAC_ENCODER_DEBUG ON)
set(FORK_DEBUG ON)
set(FUSE_DEBUG ON)
set(FUTEX_DEBUG ON)
set(FUTEXQUEUE_DEBUG ON)
set(GEMINI_DEBUG ON)
set(GENERATE_DEBUG ON)
set(GHASH_PROCESS_DEBUG ON)
set(GIF_DEBUG ON)
set(GL_DEBUG ON)
set(GLOBAL_DTORS_DEBUG ON)
set(GPT_DEBUG ON)
set(HEAP_DEBUG ON)
set(HEARTS_DEBUG ON)
set(HEX_DEBUG ON)
set(HIGHLIGHT_FOCUSED_FRAME_DEBUG ON)
set(HPET_COMPARATOR_DEBUG ON)
set(HPET_DEBUG ON)
set(HTML_SCRIPT_DEBUG ON)
set(HTTPJOB_DEBUG ON)
set(HUNKS_DEBUG ON)
set(ICMP_DEBUG ON)
set(ICO_DEBUG ON)
set(IDL_DEBUG ON)
set(ILBM_DEBUG ON)
set(IMAGE_DECODER_DEBUG ON)
set(IMAGE_LOADER_DEBUG ON)
set(IMAP_PARSER_DEBUG ON)
set(INTEL_GRAPHICS_DEBUG ON)
set(INTEL_HDA_DEBUG ON)
set(INTERRUPT_DEBUG ON)
set(IOAPIC_DEBUG ON)
set(IO_DEBUG ON)
set(IPV4_DEBUG ON)
set(IPV4_SOCKET_DEBUG ON)
set(IRQ_DEBUG ON)
set(ISO9660_DEBUG ON)
set(ISO9660_VERY_DEBUG ON)
set(ITEM_RECTS_DEBUG ON)
set(JBIG2_DEBUG ON)
set(JOB_DEBUG ON)
set(JPEG_DEBUG ON)
set(JPEG2000_DEBUG ON)
set(JS_BYTECODE_DEBUG ON)
set(JS_MODULE_DEBUG ON)
set(KEYBOARD_DEBUG ON)
set(KEYBOARD_SHORTCUTS_DEBUG ON)
set(KMALLOC_DEBUG ON)
set(LANGUAGE_SERVER_DEBUG ON)
set(LEXER_DEBUG ON)
set(LIBWEB_CSS_ANIMATION_DEBUG ON)
set(LIBWEB_CSS_DEBUG ON)
set(LINE_EDITOR_DEBUG ON)
set(LOCAL_SOCKET_DEBUG ON)
set(LOCK_DEBUG ON)
set(LOCK_IN_CRITICAL_DEBUG ON)
set(LOCK_RANK_ENFORCEMENT ON)
set(LOCK_RESTORE_DEBUG ON)
set(LOCK_SHARED_UPGRADE_DEBUG ON)
set(LOCK_TRACE_DEBUG ON)
set(LOOKUPSERVER_DEBUG ON)
set(LOOPBACK_DEBUG ON)
set(LZMA_DEBUG ON)
set(LZW_DEBUG ON)
set(MACH_PORT_DEBUG ON)
set(MALLOC_DEBUG ON)
set(MARKDOWN_DEBUG ON)
set(MATROSKA_DEBUG ON)
set(MATROSKA_TRACE_DEBUG ON)
set(MASTERPTY_DEBUG ON)
set(MBR_DEBUG ON)
set(MEMORY_DEVICE_DEBUG ON)
set(MEMORY_DEBUG ON)
set(MENU_DEBUG ON)
set(MOUSE_DEBUG ON)
set(MOVE_DEBUG ON)
set(MULTIPROCESSOR_DEBUG ON)
set(NETWORKJOB_DEBUG ON)
set(NETWORK_TASK_DEBUG ON)
set(NT_DEBUG ON)
set(NVME_DEBUG ON)
set(OCCLUSIONS_DEBUG ON)
set(OFFD_DEBUG ON)
set(OPENTYPE_GPOS_DEBUG ON)
set(PAGE_FAULT_DEBUG ON)
set(HTML_PARSER_DEBUG ON)
set(PATA_DEBUG ON)
set(PATH_DEBUG ON)
set(PCI_DEBUG ON)
set(PDF_DEBUG ON)
set(PLAYBACK_MANAGER_DEBUG ON)
set(PNG_DEBUG ON)
set(POLL_SELECT_DEBUG ON)
set(PORTABLE_IMAGE_LOADER_DEBUG ON)
set(PROCESS_DEBUG ON)
set(PROCFS_DEBUG ON)
set(PROMISE_DEBUG ON)
set(PS2MOUSE_DEBUG ON)
set(PTHREAD_DEBUG ON)
set(PTMX_DEBUG ON)
set(REACHABLE_DEBUG ON)
set(REGEX_DEBUG ON)
set(REQUESTSERVER_DEBUG ON)
set(RESIZE_DEBUG ON)
set(RESOURCE_DEBUG ON)
set(ROUTING_DEBUG ON)
set(RSA_PARSE_DEBUG ON)
set(RTL8168_DEBUG ON)
set(SCHEDULER_DEBUG ON)
set(SCHEDULER_RUNNABLE_DEBUG ON)
set(SERVICE_DEBUG ON)
set(SH_DEBUG ON)
set(SHELL_JOB_DEBUG ON)
set(SH_LANGUAGE_SERVER_DEBUG ON)
set(SHARED_QUEUE_DEBUG ON)
set(SHELL_POSIX_PARSER_DEBUG ON)
set(SIGNAL_DEBUG ON)
set(SLAVEPTY_DEBUG ON)
set(SMP_DEBUG ON)
set(SOCKET_DEBUG ON)
set(SOLITAIRE_DEBUG ON)
set(SPAM_DEBUG ON)
set(SPICE_AGENT_DEBUG ON)
set(STORAGE_DEVICE_DEBUG ON)
set(SYNTAX_HIGHLIGHTING_DEBUG ON)
set(SYSCALL_1_DEBUG ON)
set(SYSFS_DEBUG ON)
set(SYSTEM_MENU_DEBUG ON)
set(SYSTEMSERVER_DEBUG ON)
set(TCP_DEBUG ON)
set(TCP_SOCKET_DEBUG ON)
set(TDFX_DEBUG ON)
set(TERMCAP_DEBUG ON)
set(TERMINAL_DEBUG ON)
set(TEXTEDITOR_DEBUG ON)
set(THREAD_DEBUG ON)
set(TIFF_DEBUG ON)
set(TIME_ZONE_DEBUG ON)
set(TLS_DEBUG ON)
set(TLS_SSL_KEYLOG_DEBUG ON)
set(TOKENIZER_TRACE_DEBUG ON)
set(TTY_DEBUG ON)
set(UCI_DEBUG ON)
set(UDP_DEBUG ON)
set(UHCI_DEBUG ON)
set(UHCI_VERBOSE_DEBUG ON)
set(UPDATE_COALESCING_DEBUG ON)
set(URL_PARSER_DEBUG ON)
set(USB_DEBUG ON)
set(UTF8_DEBUG ON)
set(VFS_DEBUG ON)
set(VIRTIO_DEBUG ON)
set(VIRTUAL_CONSOLE_DEBUG ON)
set(VMWARE_BACKDOOR_DEBUG ON)
set(VPX_DEBUG ON)
set(WAITBLOCK_DEBUG ON)
set(WAITQUEUE_DEBUG ON)
set(WASI_DEBUG ON)
set(WASI_FINE_GRAINED_DEBUG ON)
set(WASM_BINPARSER_DEBUG ON)
@ -216,51 +75,8 @@ set(WASM_VALIDATOR_DEBUG ON)
set(WEBDRIVER_DEBUG ON)
set(WEBDRIVER_ROUTE_DEBUG ON)
set(WEBGL_CONTEXT_DEBUG ON)
set(WEBSERVER_DEBUG ON)
set(WEB_FETCH_DEBUG ON)
set(WEB_WORKER_DEBUG ON)
set(WEBP_DEBUG ON)
set(WINDOWMANAGER_DEBUG ON)
set(WORKER_THREAD_DEBUG ON)
set(WSMESSAGELOOP_DEBUG ON)
set(WSSCREEN_DEBUG ON)
set(XML_PARSER_DEBUG ON)
# False positive: DEBUG is a flag but it works differently.
# set(DEBUG ON)
# False positive: DT_DEBUG is a flag, but for a bitset, not a feature.
# set(DT_DEBUG ON)
# False positive: GUI_DND_DEBUG is a flag, but passed as an envvar.
# set(GUI_DND_DEBUG ON)
# False positive: GUI_HOVER_DEBUG is a flag, but passed as an envvar.
# set(GUI_HOVER_DEBUG ON)
# False positive: GUI_FOCUS_DEBUG is a flag, but passed as an envvar.
# set(GUI_FOCUS_DEBUG ON)
# False positive: LOG_DEBUG is a flag, but for a bitset, not a feature.
# set(LOG_DEBUG ON)
# False positive: UHCI_USBCMD_SOFTWARE_DEBUG is a flag, but for a bitset, not a feature.
# set(UHCI_USBCMD_SOFTWARE_DEBUG ON)
# False positive: DEBUG_CONTROL_REGISTER represents a specification constant.
# set(DEBUG_CONTROL_REGISTER ON)
# False positive: DEBUG_STATUS_REGISTER represents a specification constant.
# set(DEBUG_STATUS_REGISTER ON)
# False positive: DEFINE_DEBUG_REGISTER is used to define read/write methods for debug registers.
# set(DEFINE_DEBUG_REGISTER ON)
# Clogs up build: The BindingsGenerator stuff is run at compile time.
# set(BINDINGS_GENERATOR_DEBUG ON)
# Immediately finds violations during boot, shouldn't be discoverable by people who aren't working on fixing.
# set(KMALLOC_VERIFY_NO_SPINLOCK_HELD ON)
# False positive: CONSOLE_OUT_TO_BOCHS_DEBUG_PORT is a flag for ConsoleDevice, not a feature.
# set(CONSOLE_OUT_TO_BOCHS_DEBUG_PORT ON)
# False positive: BOCHS_DEBUG_PORT represents an IO port constant
# set(BOCHS_DEBUG_PORT ON)
# False positive: IFF_DEBUG is an ioctl flag
# set(IFF_DEBUG ON)
# False positive: SO_DEBUG is a socket option
# set(SO_DEBUG ON)
# False positive: ELF_DEBUG is the section name for debug symbols, not a debug flag.
# set(ELF_DEBUG ON)
# False positive: A32_DEBUG_INTERFACE is the name of a CPU feature, not a debug flag.
# set(IA32_DEBUG_INTERFACE ON)
# False positive: ANDROID_LOG_DEBUG is a log level, not a debug flag
# set(ANDROID_LOG_DEBUG ON)

View file

@ -218,54 +218,27 @@ write_cmake_config("ak_debug_gen") {
input = "Debug.h.in"
output = "$root_gen_dir/AK/Debug.h"
values = [
"AFLACLOADER_DEBUG=",
"AUDIO_DEBUG=",
"AWAVLOADER_DEBUG=",
"BINDINGS_GENERATOR_DEBUG=",
"AFLACLOADER_DEBUG=",
"BMP_DEBUG=",
"CACHE_DEBUG=",
"CALLBACK_MACHINE_DEBUG=",
"CANVAS_RENDERING_CONTEXT_2D_DEBUG=",
"CFF_DEBUG=",
"CMAKE_DEBUG=",
"COMPOSE_DEBUG=",
"COPY_DEBUG=",
"CPP_DEBUG=",
"CPP_LANGUAGE_SERVER_DEBUG=",
"CRYPTO_DEBUG=",
"CSS_LOADER_DEBUG=",
"CSS_PARSER_DEBUG=",
"CSS_TOKENIZER_DEBUG=",
"DDS_DEBUG=",
"DHCPV4CLIENT_DEBUG=",
"DHCPV4_DEBUG=",
"DIFF_DEBUG=",
"DISASM_DUMP_DEBUG=",
"DOUBLECLICK_DEBUG=",
"DRAG_DEBUG=",
"DWARF_DEBUG=",
"DYNAMIC_LOAD_DEBUG=",
"EDITOR_DEBUG=",
"ELF_IMAGE_DEBUG=",
"EMOJI_DEBUG=",
"ESCAPE_SEQUENCE_DEBUG=",
"EVENT_DEBUG=",
"FILE_CONTENT_DEBUG=",
"FILE_WATCHER_DEBUG=",
"FILL_PATH_DEBUG=",
"FLAC_ENCODER_DEBUG=",
"GEMINI_DEBUG=",
"GENERATE_DEBUG=",
"GHASH_PROCESS_DEBUG=",
"GIF_DEBUG=",
"GLOBAL_DTORS_DEBUG=",
"GL_DEBUG=",
"GPT_DEBUG=",
"HEAP_DEBUG=",
"HEARTS_DEBUG=",
"HEX_DEBUG=",
"HIGHLIGHT_FOCUSED_FRAME_DEBUG=",
"HTML_PARSER_DEBUG=",
"HTML_SCRIPT_DEBUG=",
"HTTPJOB_DEBUG=",
"HUNKS_DEBUG=",
@ -274,92 +247,58 @@ write_cmake_config("ak_debug_gen") {
"ILBM_DEBUG=",
"IMAGE_DECODER_DEBUG=",
"IMAGE_LOADER_DEBUG=",
"IMAP_PARSER_DEBUG=",
"ITEM_RECTS_DEBUG=",
"JOB_DEBUG=",
"JBIG2_DEBUG=",
"JOB_DEBUG=",
"JPEG_DEBUG=",
"JPEG2000_DEBUG=",
"JS_BYTECODE_DEBUG=",
"JS_MODULE_DEBUG=",
"KEYBOARD_SHORTCUTS_DEBUG=",
"LANGUAGE_SERVER_DEBUG=",
"LEXER_DEBUG=",
"LIBWEB_CSS_ANIMATION_DEBUG=",
"LIBWEB_CSS_DEBUG=",
"LINE_EDITOR_DEBUG=",
"LOG_DEBUG=",
"LOOKUPSERVER_DEBUG=",
"LZMA_DEBUG=",
"LZW_DEBUG=",
"MACH_PORT_DEBUG=",
"MALLOC_DEBUG=",
"MARKDOWN_DEBUG=",
"MATROSKA_DEBUG=",
"MATROSKA_TRACE_DEBUG=",
"MBR_DEBUG=",
"MEMORY_DEBUG=",
"MENU_DEBUG=",
"MOVE_DEBUG=",
"NETWORKJOB_DEBUG=",
"NT_DEBUG=",
"OCCLUSIONS_DEBUG=",
"OPENTYPE_GPOS_DEBUG=",
"HTML_PARSER_DEBUG=",
"PATH_DEBUG=",
"PDF_DEBUG=",
"PLAYBACK_MANAGER_DEBUG=",
"PNG_DEBUG=",
"PORTABLE_IMAGE_LOADER_DEBUG=",
"PROMISE_DEBUG=",
"PTHREAD_DEBUG=",
"REACHABLE_DEBUG=",
"REGEX_DEBUG=",
"REQUESTSERVER_DEBUG=",
"RESIZE_DEBUG=",
"RESOURCE_DEBUG=",
"RSA_PARSE_DEBUG=",
"SERVICE_DEBUG=",
"SHARED_QUEUE_DEBUG=",
"SHELL_JOB_DEBUG=",
"SHELL_POSIX_PARSER_DEBUG=",
"SH_DEBUG=",
"SH_LANGUAGE_SERVER_DEBUG=",
"SOLITAIRE_DEBUG=",
"SPAM_DEBUG=",
"SPICE_AGENT_DEBUG=",
"SYNTAX_HIGHLIGHTING_DEBUG=",
"SYSCALL_1_DEBUG=",
"SYSTEMSERVER_DEBUG=",
"SYSTEM_MENU_DEBUG=",
"TERMCAP_DEBUG=",
"TERMINAL_DEBUG=",
"TEXTEDITOR_DEBUG=",
"TIFF_DEBUG=",
"TIME_ZONE_DEBUG=",
"TLS_DEBUG=",
"TLS_SSL_KEYLOG_DEBUG=",
"TOKENIZER_TRACE_DEBUG=",
"UCI_DEBUG=",
"UPDATE_COALESCING_DEBUG=",
"URL_PARSER_DEBUG=",
"UTF8_DEBUG=",
"VPX_DEBUG=",
"WASI_DEBUG=",
"WASM_BINPARSER_DEBUG=",
"WASI_FINE_GRAINED_DEBUG=",
"WASM_BINPARSER_DEBUG=",
"WASM_TRACE_DEBUG=",
"WASM_VALIDATOR_DEBUG=",
"WEBDRIVER_DEBUG=",
"WEBDRIVER_ROUTE_DEBUG=",
"WEBGL_CONTEXT_DEBUG=",
"WEBP_DEBUG=",
"WEBSERVER_DEBUG=",
"WEB_FETCH_DEBUG=",
"WEB_WORKER_DEBUG=",
"WINDOWMANAGER_DEBUG=",
"WEBP_DEBUG=",
"WORKER_THREAD_DEBUG=",
"WSMESSAGELOOP_DEBUG=",
"WSSCREEN_DEBUG=",
"XML_PARSER_DEBUG=",
]
}