From d54548a2bb808a4faae45dafc5e40fa401982b29 Mon Sep 17 00:00:00 2001 From: Pavankumar07s Date: Wed, 13 Nov 2024 13:20:56 +0530 Subject: [PATCH] tried again after formatting command_frame.cc --- src/command_frame.cc | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/command_frame.cc b/src/command_frame.cc index 3604ed5..3c13a27 100644 --- a/src/command_frame.cc +++ b/src/command_frame.cc @@ -11,14 +11,14 @@ static auto enum_to_string( const sourcemeta::jsontoolkit::ReferenceEntryType type) -> std::string { switch (type) { - case sourcemeta::jsontoolkit::ReferenceEntryType::Resource: - return "resource"; - case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor: - return "anchor"; - case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer: - return "pointer"; - default: - return "unknown"; + case sourcemeta::jsontoolkit::ReferenceEntryType::Resource: + return "resource"; + case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor: + return "anchor"; + case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer: + return "pointer"; + default: + return "unknown"; } } @@ -110,20 +110,20 @@ auto sourcemeta::jsonschema::cli::frame( } else { for (const auto &[key, entry] : frame) { switch (entry.type) { - case sourcemeta::jsontoolkit::ReferenceEntryType::Resource: - std::cout << "(LOCATION)"; - break; - case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor: - std::cout << "(ANCHOR)"; - break; - case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer: - std::cout << "(POINTER)"; - break; - default: - // We should never get here - assert(false); - std::cout << "(UNKNOWN)"; - break; + case sourcemeta::jsontoolkit::ReferenceEntryType::Resource: + std::cout << "(LOCATION)"; + break; + case sourcemeta::jsontoolkit::ReferenceEntryType::Anchor: + std::cout << "(ANCHOR)"; + break; + case sourcemeta::jsontoolkit::ReferenceEntryType::Pointer: + std::cout << "(POINTER)"; + break; + default: + // We should never get here + assert(false); + std::cout << "(UNKNOWN)"; + break; } std::cout << " URI: ";