Document magic %-prefixed streams

This commit is contained in:
Martin Hořeňovský
2022-04-07 12:40:46 +02:00
parent f9f4e58dfb
commit 46b3f7ee5f
2 changed files with 26 additions and 3 deletions

View File

@@ -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 {