Skip to content

Commit 5d09c27

Browse files
committed
Updated to reflect order change in json_array
1 parent e93fd16 commit 5d09c27

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

glean.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ externalproject_add(
3030
GIT_REPOSITORY "https://github.com/beached/date.git"
3131
SOURCE_DIR "${CMAKE_BINARY_DIR}/dependencies/date"
3232
INSTALL_DIR "${CMAKE_BINARY_DIR}/install"
33-
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/install -DGLEAN_INSTALL_ROOT=${CMAKE_BINARY_DIR}/install
33+
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/install -DGLEAN_INSTALL_ROOT=${CMAKE_BINARY_DIR}/install -DUSE_SYSTEM_TZ_DB=ON -DENABLE_DATE_TESTING=OFF -DCMAKE_CXX_STANDARD=17
3434
)
3535

3636
externalproject_add(

include/types/ti_boolean.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace daw::json_to_cpp::types {
4242
}
4343

4444
static inline std::string array_member_info( ) noexcept {
45-
return "json_bool<no_name>";
45+
return "bool";
4646
}
4747

4848
inline static std::string

include/types/ti_integral.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace daw::json_to_cpp::types {
4444
}
4545

4646
static inline std::string array_member_info( ) noexcept {
47-
return "json_number<no_name, int64_t>";
47+
return "int64_t";
4848
}
4949

5050
inline static std::string

include/types/ti_real.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace daw::json_to_cpp::types {
4444
}
4545

4646
static inline std::string array_member_info( ) noexcept {
47-
return "json_number<no_name>";
47+
return "double";
4848
}
4949

5050
inline static std::string

include/types/ti_string.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace daw::json_to_cpp::types {
5353
if( m_use_string_view ) {
5454
return "json_string<no_name, std::string_view>";
5555
}
56-
return "json_string<no_name>";
56+
return "std::string";
5757
}
5858

5959
inline std::string json_name( daw::string_view member_name, bool use_cpp20,

src/ti_array.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ namespace daw::json_to_cpp::types {
6969
daw::string_view parent_name ) const {
7070
if( children->empty( ) ) {
7171
return "json_array<" +
72-
impl::format_member_name( member_name, use_cpp20, parent_name ) +
73-
", " + name( ) + ", " + ti_null::array_member_info( ) + ">";
72+
impl::format_member_name( member_name, use_cpp20, parent_name ) +
73+
", " + ti_null::array_member_info( ) +
74+
", " + name( ) + ">";
7475
}
7576
return "json_array<" +
7677
impl::format_member_name( member_name, use_cpp20, parent_name ) +
77-
", " + name( ) + ", " +
78-
::daw::json_to_cpp::types::array_member_info(
78+
", " + daw::json_to_cpp::types::array_member_info(
7979
children->front( ).second ) +
80+
", " + name( ) +
8081
">";
8182
}
8283

0 commit comments

Comments
 (0)