aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/ParagraphParseResult.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-27 18:08:52 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-27 18:59:57 -0700
commit1e9471a1489156720362ef12e1ec6849ea9b45b6 (patch)
tree46f0f35093ecd18034c9f9463d6f8b7aa590ade0 /toolsrc/src/ParagraphParseResult.cpp
parent75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f (diff)
downloadvcpkg-1e9471a1489156720362ef12e1ec6849ea9b45b6.tar.gz
vcpkg-1e9471a1489156720362ef12e1ec6849ea9b45b6.zip
Run clang-format over the cpp files
Diffstat (limited to 'toolsrc/src/ParagraphParseResult.cpp')
-rw-r--r--toolsrc/src/ParagraphParseResult.cpp27
1 files changed, 8 insertions, 19 deletions
diff --git a/toolsrc/src/ParagraphParseResult.cpp b/toolsrc/src/ParagraphParseResult.cpp
index c2da78d30..5c8c1d59d 100644
--- a/toolsrc/src/ParagraphParseResult.cpp
+++ b/toolsrc/src/ParagraphParseResult.cpp
@@ -1,24 +1,19 @@
#include "pch.h"
-#include "vcpkg_Checks.h"
+
#include "ParagraphParseResult.h"
+#include "vcpkg_Checks.h"
namespace vcpkg
{
- const char* ParagraphParseResultCategoryImpl::name() const noexcept
- {
- return "ParagraphParseResult";
- }
+ const char* ParagraphParseResultCategoryImpl::name() const noexcept { return "ParagraphParseResult"; }
std::string ParagraphParseResultCategoryImpl::message(int ev) const noexcept
{
switch (static_cast<ParagraphParseResult>(ev))
{
- case ParagraphParseResult::SUCCESS:
- return "OK";
- case ParagraphParseResult::EXPECTED_ONE_PARAGRAPH:
- return "There should be exactly one paragraph";
- default:
- Checks::unreachable(VCPKG_LINE_INFO);
+ case ParagraphParseResult::SUCCESS: return "OK";
+ case ParagraphParseResult::EXPECTED_ONE_PARAGRAPH: return "There should be exactly one paragraph";
+ default: Checks::unreachable(VCPKG_LINE_INFO);
}
}
@@ -33,13 +28,7 @@ namespace vcpkg
return std::error_code(static_cast<int>(e), paragraph_parse_result_category());
}
- ParagraphParseResult to_paragraph_parse_result(int i)
- {
- return static_cast<ParagraphParseResult>(i);
- }
+ ParagraphParseResult to_paragraph_parse_result(int i) { return static_cast<ParagraphParseResult>(i); }
- ParagraphParseResult to_paragraph_parse_result(std::error_code ec)
- {
- return to_paragraph_parse_result(ec.value());
- }
+ ParagraphParseResult to_paragraph_parse_result(std::error_code ec) { return to_paragraph_parse_result(ec.value()); }
}