@@ -204,8 +204,8 @@ handle_json_entry(const std::filesystem::path &entry_path,
204204 auto parsed{read_file (canonical)};
205205 auto canonical_copy{canonical};
206206 result.push_back ({std::move (canonical), std::move (canonical_copy),
207- std::move (parsed.document ), std::move (parsed. positions ),
208- 0 , false , parsed.yaml });
207+ std::move (parsed.document ),
208+ std::move (parsed. positions ), 0 , false , parsed.yaml });
209209 }
210210 }
211211 } else {
@@ -223,8 +223,8 @@ handle_json_entry(const std::filesystem::path &entry_path,
223223 for (const auto &document : sourcemeta::core::JSONL{stream}) {
224224 // TODO: Get real positions for JSONL
225225 sourcemeta::core::PointerPositionTracker positions;
226- result.push_back (
227- {canonical, canonical, document, std::move (positions), index, true });
226+ result.push_back ({canonical, canonical, document,
227+ std::move (positions), index, true });
228228 index += 1 ;
229229 }
230230 } catch (const sourcemeta::core::JSONParseError &error) {
@@ -276,10 +276,10 @@ handle_json_entry(const std::filesystem::path &entry_path,
276276 }
277277 } else if (documents.size () == 1 ) {
278278 auto canonical_copy{canonical};
279- result.push_back (
280- { std::move (canonical), std::move (canonical_copy ),
281- std::move (documents.front ().first ) ,
282- std::move (documents. front (). second ), 0 , false , true });
279+ result.push_back ({ std::move (canonical), std::move (canonical_copy),
280+ std::move (documents. front (). first ),
281+ std::move (documents.front ().second ), 0 , false ,
282+ true });
283283 }
284284 } else {
285285 if (std::filesystem::is_empty (canonical)) {
@@ -289,8 +289,8 @@ handle_json_entry(const std::filesystem::path &entry_path,
289289 auto parsed{read_file (canonical)};
290290 auto canonical_copy{canonical};
291291 result.push_back ({std::move (canonical), std::move (canonical_copy),
292- std::move (parsed.document ), std::move (parsed. positions ),
293- 0 , false , parsed.yaml });
292+ std::move (parsed.document ),
293+ std::move (parsed. positions ), 0 , false , parsed.yaml });
294294 }
295295 }
296296 }
@@ -307,8 +307,7 @@ inline auto for_each_json(const std::vector<std::string_view> &arguments,
307307 }
308308 }
309309 if (stdin_count > 1 ) {
310- throw std::runtime_error{
311- " Standard input (-) can only be specified once" };
310+ throw std::runtime_error{" Standard input (-) can only be specified once" };
312311 }
313312
314313 const auto blacklist{parse_ignore (options)};
0 commit comments