mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Basic] Handle multiline strings in abortWithPrettyStackTraceMessage
Improve the formatting by indenting to match the rest of the pretty stack trace.
This commit is contained in:
@@ -51,13 +51,15 @@ public:
|
||||
};
|
||||
|
||||
/// Aborts the program, printing a given message to a PrettyStackTrace frame
|
||||
/// before exiting.
|
||||
/// before exiting. This should be preferred over manually logging to stderr and
|
||||
/// aborting since that won't be picked up by the crash reporter.
|
||||
[[noreturn]]
|
||||
void abortWithPrettyStackTraceMessage(
|
||||
llvm::function_ref<void(llvm::raw_ostream &)> message);
|
||||
|
||||
/// Aborts the program, printing a given message to a PrettyStackTrace frame
|
||||
/// before exiting.
|
||||
/// before exiting. This should be preferred over manually logging to stderr and
|
||||
/// aborting since that won't be picked up by the crash reporter.
|
||||
[[noreturn]]
|
||||
void abortWithPrettyStackTraceMessage(llvm::StringRef message);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user