From 346aa3fab8c02fcabe09b2738a392e62e792b99f Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Fri, 28 Apr 2017 12:55:50 -0700 Subject: [clang-format] Cpp11BracedListStyle: true --- toolsrc/src/SourceParagraph.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'toolsrc/src/SourceParagraph.cpp') diff --git a/toolsrc/src/SourceParagraph.cpp b/toolsrc/src/SourceParagraph.cpp index ac88e54ac..d140ce72b 100644 --- a/toolsrc/src/SourceParagraph.cpp +++ b/toolsrc/src/SourceParagraph.cpp @@ -25,12 +25,12 @@ namespace vcpkg static const std::vector& get_list_of_valid_fields() { - static const std::vector valid_fields = { SourceParagraphRequiredField::SOURCE, - SourceParagraphRequiredField::VERSION, + static const std::vector valid_fields = {SourceParagraphRequiredField::SOURCE, + SourceParagraphRequiredField::VERSION, - SourceParagraphOptionalField::DESCRIPTION, - SourceParagraphOptionalField::MAINTAINER, - SourceParagraphOptionalField::BUILD_DEPENDS }; + SourceParagraphOptionalField::DESCRIPTION, + SourceParagraphOptionalField::MAINTAINER, + SourceParagraphOptionalField::BUILD_DEPENDS}; return valid_fields; } @@ -67,14 +67,14 @@ namespace vcpkg { auto convert = [&](const std::string& depend_string) -> Dependency { auto pos = depend_string.find(' '); - if (pos == std::string::npos) return { depend_string, "" }; + if (pos == std::string::npos) return {depend_string, ""}; // expect of the form "\w+ \[\w+\]" Dependency dep; dep.name = depend_string.substr(0, pos); if (depend_string.c_str()[pos + 1] != '[' || depend_string[depend_string.size() - 1] != ']') { // Error, but for now just slurp the entire string. - return { depend_string, "" }; + return {depend_string, ""}; } dep.qualifier = depend_string.substr(pos + 2, depend_string.size() - pos - 3); return dep; -- cgit v1.2.3