Skip to content

Commit fd8ec3b

Browse files
move trivial ctor derivation to only be performed on non-opaque types
1 parent 6cf7ef4 commit fd8ec3b

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(cppmm)
44
include(GNUInstallDirs)
55

66
set(CPPMM_MAJOR_VERSION 0)
7-
set(CPPMM_MINOR_VERSION 10)
7+
set(CPPMM_MINOR_VERSION 11)
88
set(CPPMM_PATCH_VERSION 0)
99
set(CPPMM_VERSION "${CPPMM_MAJOR_VERSION}.${CPPMM_MINOR_VERSION}.${CPPMM_PATCH_VERSION}")
1010

astgen/src/process_binding.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,9 @@ void process_concrete_record(const CXXRecordDecl* crd, std::string filename,
11941194
bool is_abstract = false;
11951195
bool ignore_unbound = has_ignore_unbound_attr(attrs);
11961196

1197+
bool has_public_copy_ctor = false;
1198+
bool has_public_move_ctor = false;
1199+
11971200
if (!is_opaquetype) {
11981201
// We can only get the detailed info here for a non-opaque type
11991202
// Get the size and alignment of the Record
@@ -1220,11 +1223,9 @@ void process_concrete_record(const CXXRecordDecl* crd, std::string filename,
12201223
}
12211224
is_abstract = crd->isAbstract();
12221225
}
1223-
}
12241226

1225-
bool has_public_copy_ctor = false;
1226-
bool has_public_move_ctor = false;
1227-
has_public_copy_move_ctor(crd, has_public_copy_ctor, has_public_move_ctor);
1227+
has_public_copy_move_ctor(crd, has_public_copy_ctor, has_public_move_ctor);
1228+
}
12281229

12291230
// Add the new Record node
12301231
NodeId new_id = NODES.size();

include/cppmm_config.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#pragma once
22

33
#define CPPMM_MAJOR_VERSION 0
4-
#define CPPMM_MINOR_VERSION 10
4+
#define CPPMM_MINOR_VERSION 11
55
#define CPPMM_PATCH_VERSION 0
66

77
namespace cppmm {
88

99
inline const char* version() {
10-
return "0.10.0";
10+
return "0.11.0";
1111
}
1212

1313
}

package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = 'cppmm'
2-
version = '0.10.0'
2+
version = '0.11.0'
33

44
def commands():
55
env.PATH.append('{root}/bin')

0 commit comments

Comments
 (0)