2
0
mirror of https://github.com/boostorg/json.git synced 2026-01-19 04:12:14 +00:00

pretty printer cleanup

This commit is contained in:
Dmitry Arkhipov
2024-09-23 08:52:25 +03:00
parent 743be7fe13
commit 85f9e92c18
4 changed files with 6 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ if(BoostPrettyPrinters_FOUND)
INPUT src/boost_json_gdb_printers.py
OUTPUT include/boost/json/detail/gdb_printers.hpp
HEADER_GUARD BOOST_JSON_DETAIL_GDB_PRINTERS_HPP
NO_DISABLE_MACRO
EXCLUDE_FROM_ALL)
endif()

View File

@@ -89,6 +89,7 @@ boost-pretty-printers.gdb-python-header gdb_printers.hpp
: boost_json_gdb_printers.py
: <location>../include/boost/json/detail
<flags>--header-guard=BOOST_JSON_DETAIL_GDB_PRINTERS_HPP
<flags>--disable-macro=
;
always gdb_printers.hpp ;
explicit regenerate-printers gdb_printers.hpp ;

View File

@@ -7,7 +7,7 @@
// Official repository: https://github.com/boostorg/json
//
// Autogenerated from boost_json_gdb_printers.py by boost-gdb
// Autogenerated from boost_json_gdb_printers.py by boost-pretty-printers
#ifndef BOOST_JSON_DETAIL_GDB_PRINTERS_HPP
#define BOOST_JSON_DETAIL_GDB_PRINTERS_HPP

View File

@@ -23,7 +23,7 @@ set(BoostPrettyPrinters_GDB_TEST_SCRIPT
set(BoostPrettyPrinters_INCLUDES "${CMAKE_CURRENT_LIST_DIR}/include")
function(boost_pretty_printers_gdb_python_header)
set(options EXCLUDE_FROM_ALL)
set(options NO_DISABLE_MACRO EXCLUDE_FROM_ALL)
set(oneValueArgs TARGET INPUT OUTPUT HEADER_GUARD DISABLE_MACRO)
set(multiValueArgs)
cmake_parse_arguments(BOOST_PPRINT_GDB_GEN
@@ -42,6 +42,8 @@ function(boost_pretty_printers_gdb_python_header)
if(DEFINED BOOST_PPRINT_GDB_GEN_DISABLE_MACRO)
set(BOOST_PPRINT_GDB_GEN_DISABLE_MACRO
"--disable-macro=${BOOST_PPRINT_GDB_GEN_DISABLE_MACRO}")
elseif(BOOST_PPRINT_GDB_GEN_NO_DISABLE_MACRO)
set(BOOST_PPRINT_GDB_GEN_DISABLE_MACRO "--disable-macro=")
endif()
add_custom_command(
OUTPUT "${BOOST_PPRINT_GDB_GEN_OUTPUT}"