Skip to content

Commit 749537f

Browse files
authored
[lldb][lldb-dap] parse pathFormat as an optional (llvm#155238)
pathFormat is an optional field in `initializeAruguments`.
1 parent 737cb78 commit 749537f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ bool fromJSON(const json::Value &Params, InitializeRequestArguments &IRA,
219219
OM.map("clientName", IRA.clientName) && OM.map("locale", IRA.locale) &&
220220
OM.map("linesStartAt1", IRA.linesStartAt1) &&
221221
OM.map("columnsStartAt1", IRA.columnsStartAt1) &&
222-
OM.map("pathFormat", IRA.pathFormat) &&
222+
OM.mapOptional("pathFormat", IRA.pathFormat) &&
223223
OM.map("$__lldb_sourceInitFile", IRA.lldbExtSourceInitFile);
224224
}
225225

0 commit comments

Comments
 (0)