Skip to content

Commit

Permalink
pretty printer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Sep 23, 2024
1 parent 743be7f commit 85f9e92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
1 change: 1 addition & 0 deletions build/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down
2 changes: 1 addition & 1 deletion include/boost/json/detail/gdb_printers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pretty_printers/FindBoostPrettyPrinters.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
Expand Down

0 comments on commit 85f9e92

Please sign in to comment.