mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 13:55:39 +02:00
Document magic %-prefixed streams
This commit is contained in:
@@ -40,6 +40,17 @@ namespace Catch {
|
||||
virtual bool isConsole() const { return false; }
|
||||
};
|
||||
|
||||
/**
|
||||
* Creates a stream wrapper that writes to specific file.
|
||||
*
|
||||
* Also recognizes 4 special filenames
|
||||
* * `-` for stdout
|
||||
* * `%stdout` for stdout
|
||||
* * `%stderr` for stderr
|
||||
* * `%debug` for platform specific debugging output
|
||||
*
|
||||
* \throws if passed an unrecognized %-prefixed stream
|
||||
*/
|
||||
auto makeStream( std::string const& filename ) -> Detail::unique_ptr<IStream const>;
|
||||
|
||||
class ReusableStringStream : Detail::NonCopyable {
|
||||
|
Reference in New Issue
Block a user