Skip to content

Commit 0a34cc2

Browse files
committed
v2.2.1
1 parent 11c89a5 commit 0a34cc2

File tree

8 files changed

+25
-15
lines changed

8 files changed

+25
-15
lines changed

Diff for: CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(NOT DEFINED PROJECT_NAME)
66
set(NOT_SUBPROJECT ON)
77
endif()
88

9-
project(Catch2 LANGUAGES CXX VERSION 2.2.0)
9+
project(Catch2 LANGUAGES CXX VERSION 2.2.1)
1010

1111
include(GNUInstallDirs)
1212

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
[![Build Status](https://travis-ci.org/catchorg/Catch2.svg?branch=master)](https://travis-ci.org/catchorg/Catch2)
66
[![Build status](https://ci.appveyor.com/api/projects/status/github/catchorg/Catch2?svg=true)](https://ci.appveyor.com/project/catchorg/catch2)
77
[![codecov](https://codecov.io/gh/catchorg/Catch2/branch/master/graph/badge.svg)](https://codecov.io/gh/catchorg/Catch2)
8-
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/vOtfjd7LKmcj4JqD)
8+
[![Try online](https://img.shields.io/badge/try-online-blue.svg)](https://wandbox.org/permlink/zDKMK3eGMC9IP2jy)
99

10-
<a href="https://github.com/catchorg/Catch2/releases/download/v2.2.0/catch.hpp">The latest version of the single header can be downloaded directly using this link</a>
10+
<a href="https://github.com/catchorg/Catch2/releases/download/v2.2.1/catch.hpp">The latest version of the single header can be downloaded directly using this link</a>
1111

1212
## Catch2 is released!
1313

Diff for: conanfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class CatchConan(ConanFile):
66
name = "Catch"
7-
version = "2.2.0"
7+
version = "2.2.1"
88
description = "A modern, C++-native, header-only, framework for unit-tests, TDD and BDD"
99
author = "philsquared"
1010
generators = "cmake"

Diff for: docs/release-notes.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<a id="top"></a>
22

3+
# 2.2.1
4+
5+
## Fixes
6+
* Fixed compilation error when compiling Catch2 with `std=c++17` against libc++ (#1214)
7+
* Clara (Catch2's CLI parsing library) used `std::optional` without including it explicitly
8+
* Fixed Catch2 return code always being 0 (#1215)
9+
* In the words of STL, "We feel superbad about letting this in"
10+
11+
312
# 2.2.0
413

514
## Fixes

Diff for: include/catch.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define CATCH_VERSION_MAJOR 2
1313
#define CATCH_VERSION_MINOR 2
14-
#define CATCH_VERSION_PATCH 0
14+
#define CATCH_VERSION_PATCH 1
1515

1616
#ifdef __clang__
1717
# pragma clang system_header

Diff for: include/internal/catch_version.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace Catch {
3737
}
3838

3939
Version const& libraryVersion() {
40-
static Version version( 2, 2, 0, "", 0 );
40+
static Version version( 2, 2, 1, "", 0 );
4141
return version;
4242
}
4343

Diff for: single_include/catch.hpp

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Catch v2.2.0
3-
* Generated: 2018-03-07 10:56:32.217228
2+
* Catch v2.2.1
3+
* Generated: 2018-03-11 12:01:31.654719
44
* ----------------------------------------------------------
55
* This file has been merged from multiple headers. Please don't edit it directly
66
* Copyright (c) 2018 Two Blue Cubes Ltd. All rights reserved.
@@ -15,7 +15,7 @@
1515

1616
#define CATCH_VERSION_MAJOR 2
1717
#define CATCH_VERSION_MINOR 2
18-
#define CATCH_VERSION_PATCH 0
18+
#define CATCH_VERSION_PATCH 1
1919

2020
#ifdef __clang__
2121
# pragma clang system_header
@@ -5134,7 +5134,7 @@ namespace Catch {
51345134
//
51355135
// See https://github.com/philsquared/Clara for more details
51365136

5137-
// Clara v1.1.3
5137+
// Clara v1.1.4
51385138

51395139

51405140
#ifndef CATCH_CLARA_CONFIG_CONSOLE_WIDTH
@@ -5148,6 +5148,7 @@ namespace Catch {
51485148
#ifndef CLARA_CONFIG_OPTIONAL_TYPE
51495149
#ifdef __has_include
51505150
#if __has_include(<optional>) && __cplusplus >= 201703L
5151+
#include <optional>
51515152
#define CLARA_CONFIG_OPTIONAL_TYPE std::optional
51525153
#endif
51535154
#endif
@@ -5784,11 +5785,11 @@ namespace detail {
57845785
}
57855786
#ifdef CLARA_CONFIG_OPTIONAL_TYPE
57865787
template<typename T>
5787-
inline auto convertInto( std::string const &source, std::optional<T>& target ) -> ParserResult {
5788+
inline auto convertInto( std::string const &source, CLARA_CONFIG_OPTIONAL_TYPE<T>& target ) -> ParserResult {
57885789
T temp;
57895790
auto result = convertInto( source, temp );
57905791
if( result )
5791-
target = temp;
5792+
target = std::move(temp);
57925793
return result;
57935794
}
57945795
#endif // CLARA_CONFIG_OPTIONAL_TYPE
@@ -9237,7 +9238,7 @@ namespace Catch {
92379238
// Note that on unices only the lower 8 bits are usually used, clamping
92389239
// the return value to 255 prevents false negative when some multiple
92399240
// of 256 tests has failed
9240-
return (std::min)( { MaxExitCode, totals.error, static_cast<int>( totals.assertions.failed ) } );
9241+
return (std::min) (MaxExitCode, (std::max) (totals.error, static_cast<int>(totals.assertions.failed)));
92419242
}
92429243
catch( std::exception& ex ) {
92439244
Catch::cerr() << ex.what() << std::endl;
@@ -10806,7 +10807,7 @@ namespace Catch {
1080610807
}
1080710808

1080810809
Version const& libraryVersion() {
10809-
static Version version( 2, 2, 0, "", 0 );
10810+
static Version version( 2, 2, 1, "", 0 );
1081010811
return version;
1081110812
}
1081210813

Diff for: test_package/conanfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CatchConanTest(ConanFile):
1010
settings = "os", "compiler", "arch", "build_type"
1111
username = getenv("CONAN_USERNAME", "philsquared")
1212
channel = getenv("CONAN_CHANNEL", "testing")
13-
requires = "Catch/2.2.0@%s/%s" % (username, channel)
13+
requires = "Catch/2.2.1@%s/%s" % (username, channel)
1414

1515
def build(self):
1616
cmake = CMake(self)

0 commit comments

Comments
 (0)