Skip to content

Commit 05e10df

Browse files
committed
v3.5.2
1 parent 597ce12 commit 05e10df

File tree

7 files changed

+32
-32
lines changed

7 files changed

+32
-32
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (CMAKE_BINARY_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
3333
endif()
3434

3535
project(Catch2
36-
VERSION 3.5.1 # CML version placeholder, don't delete
36+
VERSION 3.5.2 # CML version placeholder, don't delete
3737
LANGUAGES CXX
3838
# HOMEPAGE_URL is not supported until CMake version 3.12, which
3939
# we do not target yet.

docs/release-notes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Release notes
44
**Contents**<br>
5+
[3.5.2](#352)<br>
56
[3.5.1](#351)<br>
67
[3.5.0](#350)<br>
78
[3.4.0](#340)<br>
@@ -59,6 +60,13 @@
5960
[Even Older versions](#even-older-versions)<br>
6061

6162

63+
## 3.5.1
64+
65+
### Fixes
66+
* Fixed `-Wsubobject-linkage` in the Console reporter (#2794)
67+
* Fixed adding new CLI Options to lvalue parser using `|` (#2787)
68+
69+
6270
## 3.5.1
6371

6472
### Improvements

extras/catch_amalgamated.cpp

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
// SPDX-License-Identifier: BSL-1.0
88

9-
// Catch v3.5.1
10-
// Generated: 2023-12-31 15:10:55.864983
9+
// Catch v3.5.2
10+
// Generated: 2024-01-15 14:06:36.675713
1111
// ----------------------------------------------------------
1212
// This file is an amalgamation of multiple different files.
1313
// You probably shouldn't edit it directly.
@@ -187,21 +187,16 @@ namespace Catch {
187187
double const* last,
188188
Estimator& estimator ) {
189189
auto n = static_cast<size_t>( last - first );
190-
std::uniform_int_distribution<decltype( n )> dist( 0,
191-
n - 1 );
190+
std::uniform_int_distribution<size_t> dist( 0, n - 1 );
192191

193192
sample out;
194193
out.reserve( resamples );
195-
// We allocate the vector outside the loop to avoid realloc
196-
// per resample
197194
std::vector<double> resampled;
198195
resampled.reserve( n );
199196
for ( size_t i = 0; i < resamples; ++i ) {
200197
resampled.clear();
201198
for ( size_t s = 0; s < n; ++s ) {
202-
resampled.push_back(
203-
first[static_cast<std::ptrdiff_t>(
204-
dist( rng ) )] );
199+
resampled.push_back( first[dist( rng )] );
205200
}
206201
const auto estimate =
207202
estimator( resampled.data(), resampled.data() + resampled.size() );
@@ -2273,7 +2268,7 @@ namespace Catch {
22732268
}
22742269

22752270
Version const& libraryVersion() {
2276-
static Version version( 3, 5, 1, "", 0 );
2271+
static Version version( 3, 5, 2, "", 0 );
22772272
return version;
22782273
}
22792274

@@ -4380,7 +4375,6 @@ namespace Detail {
43804375
CATCH_ENFORCE( !m_ofs.fail(), "Unable to open file: '" << filename << '\'' );
43814376
m_ofs << std::unitbuf;
43824377
}
4383-
~FileStream() override = default;
43844378
public: // IStream
43854379
std::ostream& stream() override {
43864380
return m_ofs;
@@ -4395,7 +4389,6 @@ namespace Detail {
43954389
// Store the streambuf from cout up-front because
43964390
// cout may get redirected when running tests
43974391
CoutStream() : m_os( Catch::cout().rdbuf() ) {}
4398-
~CoutStream() override = default;
43994392

44004393
public: // IStream
44014394
std::ostream& stream() override { return m_os; }
@@ -4409,7 +4402,6 @@ namespace Detail {
44094402
// Store the streambuf from cerr up-front because
44104403
// cout may get redirected when running tests
44114404
CerrStream(): m_os( Catch::cerr().rdbuf() ) {}
4412-
~CerrStream() override = default;
44134405

44144406
public: // IStream
44154407
std::ostream& stream() override { return m_os; }
@@ -4427,8 +4419,6 @@ namespace Detail {
44274419
m_os( m_streamBuf.get() )
44284420
{}
44294421

4430-
~DebugOutStream() override = default;
4431-
44324422
public: // IStream
44334423
std::ostream& stream() override { return m_os; }
44344424
};
@@ -5441,7 +5431,6 @@ namespace Catch {
54415431
TrackerContext& ctx,
54425432
ITracker* parent ):
54435433
TrackerBase( CATCH_MOVE( nameAndLocation ), ctx, parent ) {}
5444-
~GeneratorTracker() override = default;
54455434

54465435
static GeneratorTracker*
54475436
acquire( TrackerContext& ctx,
@@ -8799,13 +8788,6 @@ findMax( std::size_t& i, std::size_t& j, std::size_t& k, std::size_t& l ) {
87998788
return l;
88008789
}
88018790

8802-
enum class Justification { Left, Right };
8803-
8804-
struct ColumnInfo {
8805-
std::string name;
8806-
std::size_t width;
8807-
Justification justification;
8808-
};
88098791
struct ColumnBreak {};
88108792
struct RowBreak {};
88118793
struct OutputFlush {};
@@ -8883,6 +8865,14 @@ class Duration {
88838865
};
88848866
} // end anon namespace
88858867

8868+
enum class Justification { Left, Right };
8869+
8870+
struct ColumnInfo {
8871+
std::string name;
8872+
std::size_t width;
8873+
Justification justification;
8874+
};
8875+
88868876
class TablePrinter {
88878877
std::ostream& m_os;
88888878
std::vector<ColumnInfo> m_columnInfos;

extras/catch_amalgamated.hpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
// SPDX-License-Identifier: BSL-1.0
88

9-
// Catch v3.5.1
10-
// Generated: 2023-12-31 15:10:53.044176
9+
// Catch v3.5.2
10+
// Generated: 2024-01-15 14:06:34.036475
1111
// ----------------------------------------------------------
1212
// This file is an amalgamation of multiple different files.
1313
// You probably shouldn't edit it directly.
@@ -3766,7 +3766,7 @@ namespace Catch {
37663766
bool benchmarkNoAnalysis = false;
37673767
unsigned int benchmarkSamples = 100;
37683768
double benchmarkConfidenceInterval = 0.95;
3769-
unsigned int benchmarkResamples = 100000;
3769+
unsigned int benchmarkResamples = 100'000;
37703770
std::chrono::milliseconds::rep benchmarkWarmupTime = 100;
37713771

37723772
Verbosity verbosity = Verbosity::Normal;
@@ -4825,7 +4825,9 @@ namespace Catch {
48254825

48264826
template <typename T>
48274827
friend Parser operator|( Parser const& p, T&& rhs ) {
4828-
return Parser( p ) |= CATCH_FORWARD(rhs);
4828+
Parser temp( p );
4829+
temp |= rhs;
4830+
return temp;
48294831
}
48304832

48314833
template <typename T>
@@ -7146,7 +7148,7 @@ namespace Catch {
71467148

71477149
#define CATCH_VERSION_MAJOR 3
71487150
#define CATCH_VERSION_MINOR 5
7149-
#define CATCH_VERSION_PATCH 1
7151+
#define CATCH_VERSION_PATCH 2
71507152

71517153
#endif // CATCH_VERSION_MACROS_HPP_INCLUDED
71527154

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
project(
99
'catch2',
1010
'cpp',
11-
version: '3.5.1', # CML version placeholder, don't delete
11+
version: '3.5.2', # CML version placeholder, don't delete
1212
license: 'BSL-1.0',
1313
meson_version: '>=0.54.1',
1414
)

src/catch2/catch_version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace Catch {
3636
}
3737

3838
Version const& libraryVersion() {
39-
static Version version( 3, 5, 1, "", 0 );
39+
static Version version( 3, 5, 2, "", 0 );
4040
return version;
4141
}
4242

src/catch2/catch_version_macros.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
#define CATCH_VERSION_MAJOR 3
1212
#define CATCH_VERSION_MINOR 5
13-
#define CATCH_VERSION_PATCH 1
13+
#define CATCH_VERSION_PATCH 2
1414

1515
#endif // CATCH_VERSION_MACROS_HPP_INCLUDED

0 commit comments

Comments
 (0)