Skip to content

Commit bf7e4a6

Browse files
committed
Run clang format.
1 parent c94c572 commit bf7e4a6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lldb/source/Core/Section.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,7 @@ bool fromJSON(const llvm::json::Value &value,
691691
llvm::json::ObjectMapper o(value, path);
692692
return o && o.map("name", section.name) && o.map("type", section.type) &&
693693
o.map("address", section.address) && o.map("size", section.size) &&
694-
o.map("read", section.read) &&
695-
o.map("write", section.write) &&
694+
o.map("read", section.read) && o.map("write", section.write) &&
696695
o.map("execute", section.execute) &&
697696
o.mapOptional("subsections", section.subsections);
698697
}

lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,17 @@ void ObjectFileJSON::CreateSections(SectionList &unified_section_list) {
182182
lldb::user_id_t id = 1;
183183
for (const auto &json_section : m_sections) {
184184
auto make_section = [this, &id](const JSONSection &section,
185-
SectionSP parent_section_sp = nullptr) -> SectionSP {
185+
SectionSP parent_section_sp =
186+
nullptr) -> SectionSP {
186187
SectionSP section_sp;
187188
if (parent_section_sp) {
188189
section_sp = std::make_shared<Section>(
189190
parent_section_sp, GetModule(), this,
190191
/*sect_id=*/id++,
191192
/*name=*/ConstString(section.name),
192193
/*sect_type=*/section.type.value_or(eSectionTypeCode),
193-
/*file_vm_addr=*/section.address.value_or(0) - parent_section_sp->GetFileAddress(),
194+
/*file_vm_addr=*/section.address.value_or(0) -
195+
parent_section_sp->GetFileAddress(),
194196
/*vm_size=*/section.size.value_or(0),
195197
/*file_offset=*/0,
196198
/*file_size=*/0,

0 commit comments

Comments
 (0)