Skip to content

Commit ac5bc70

Browse files
author
Tom Yang
committed
fix clang, darker formatting
1 parent e94f734 commit ac5bc70

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

lldb/source/Commands/CommandObjectSession.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class CommandObjectSessionSave : public CommandObjectParsed {
2020
"Save the current session transcripts to a file.\n"
2121
"If no file if specified, transcripts will be "
2222
"saved to a temporary file.\n"
23-
"Note: transcripts will only be saved if interpreter.save-transcript is true.\n",
23+
"Note: transcripts will only be saved if "
24+
"interpreter.save-transcript is true.\n",
2425
"session save [file]") {
2526
AddSimpleArgumentList(eArgTypePath, eArgRepeatOptional);
2627
}

lldb/source/Interpreter/CommandInterpreter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3309,7 +3309,9 @@ bool CommandInterpreter::SaveTranscript(
33093309
result.AppendMessageWithFormat("Session's transcripts saved to %s\n",
33103310
output_file->c_str());
33113311
if (!GetSaveTranscript())
3312-
result.AppendError("Note: the setting interpreter.save-transcript is set to false, so the transcript might not have been recorded.");
3312+
result.AppendError(
3313+
"Note: the setting interpreter.save-transcript is set to false, so the "
3314+
"transcript might not have been recorded.");
33133315

33143316
if (GetOpenTranscriptInEditor() && Host::IsInteractiveGraphicSession()) {
33153317
const FileSpec file_spec;

lldb/test/API/commands/session/save/TestSessionSave.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,17 @@ def test_session_save_no_transcript_warning(self):
113113
res = lldb.SBCommandReturnObject()
114114
interpreter.HandleCommand(command, res)
115115

116-
output_file = self.getBuildArtifact('my-session')
116+
output_file = self.getBuildArtifact("my-session")
117117

118118
res = lldb.SBCommandReturnObject()
119119
interpreter.HandleCommand("session save " + output_file, res)
120120
self.assertTrue(res.Succeeded())
121121
# We should warn about the setting being false.
122122
self.assertIn("interpreter.save-transcript is set to false", res.GetError())
123-
self.assertTrue(os.path.getsize(output_file) == 0, "Output file should be empty since we didn't save the transcript.")
123+
self.assertTrue(
124+
os.path.getsize(output_file) == 0,
125+
"Output file should be empty since we didn't save the transcript.",
126+
)
124127

125128
@no_debug_info_test
126129
def test_session_save_on_quit(self):

0 commit comments

Comments
 (0)