-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2138 from catchorg/devel-config-splitting
Split some configuration options out of catch_compiler_capabilities
- Loading branch information
Showing
15 changed files
with
80 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
// Copyright Catch2 Authors | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// SPDX-License-Identifier: BSL-1.0 | ||
|
||
/** \file | ||
* Wrapper for the CONFIG configuration option | ||
* | ||
* When generating internal unique names, there are two options. Either | ||
* we mix in the current line number, or mix in an incrementing number. | ||
* We prefer the latter, using `__COUNTER__`, but users might want to | ||
* use the former. | ||
*/ | ||
|
||
#ifndef CATCH_CONFIG_COUNTER_HPP_INCLUDED | ||
#define CATCH_CONFIG_COUNTER_HPP_INCLUDED | ||
|
||
#if ( !defined(__JETBRAINS_IDE__) || __JETBRAINS_IDE__ >= 20170300L ) | ||
#define CATCH_INTERNAL_CONFIG_COUNTER | ||
#endif | ||
|
||
#if defined( CATCH_INTERNAL_CONFIG_COUNTER ) && \ | ||
!defined( CATCH_CONFIG_NO_COUNTER ) && \ | ||
!defined( CATCH_CONFIG_COUNTER ) | ||
# define CATCH_CONFIG_COUNTER | ||
#endif | ||
|
||
|
||
#endif // CATCH_CONFIG_COUNTER_HPP_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
// Copyright Catch2 Authors | ||
// Distributed under the Boost Software License, Version 1.0. | ||
// (See accompanying file LICENSE_1_0.txt or copy at | ||
// https://www.boost.org/LICENSE_1_0.txt) | ||
|
||
// SPDX-License-Identifier: BSL-1.0 | ||
|
||
/** \file | ||
* Wrapper for the WCHAR configuration option | ||
* | ||
* We want to support platforms that do not provide `wchar_t`, so we | ||
* sometimes have to disable providing wchar_t overloads through Catch2, | ||
* e.g. the StringMaker specialization for `std::wstring`. | ||
*/ | ||
|
||
#ifndef CATCH_CONFIG_WCHAR_HPP_INCLUDED | ||
#define CATCH_CONFIG_WCHAR_HPP_INCLUDED | ||
|
||
// We assume that WCHAR should be enabled by default, and only disabled | ||
// for a shortlist (so far only DJGPP) of compilers. | ||
|
||
#if defined(__DJGPP__) | ||
# define CATCH_INTERNAL_CONFIG_NO_WCHAR | ||
#endif // __DJGPP__ | ||
|
||
#if !defined( CATCH_INTERNAL_CONFIG_NO_WCHAR ) && \ | ||
!defined( CATCH_CONFIG_NO_WCHAR ) && \ | ||
!defined( CATCH_CONFIG_WCHAR ) | ||
# define CATCH_CONFIG_WCHAR | ||
#endif | ||
|
||
#endif // CATCH_CONFIG_WCHAR_HPP_INCLUDED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters