diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2020-07-06 16:45:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-06 16:45:34 -0700 |
| commit | 6a41626eaf33d2f3392e06d98a94c630bfc30977 (patch) | |
| tree | fb92f59f27b99c56ed48f6cae649468b4407a073 /toolsrc/src/vcpkg-fuzz/main.cpp | |
| parent | ae4968fad40e8c14541dae89c481ec32c0500426 (diff) | |
| download | vcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.tar.gz vcpkg-6a41626eaf33d2f3392e06d98a94c630bfc30977.zip | |
[vcpkg] Format the C++ in CI (#11655)
* [vcpkg] Format the C++ in the CI
* format the C++
* CR
Diffstat (limited to 'toolsrc/src/vcpkg-fuzz/main.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg-fuzz/main.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/toolsrc/src/vcpkg-fuzz/main.cpp b/toolsrc/src/vcpkg-fuzz/main.cpp index bbff0d98d..af482fb56 100644 --- a/toolsrc/src/vcpkg-fuzz/main.cpp +++ b/toolsrc/src/vcpkg-fuzz/main.cpp @@ -1,16 +1,16 @@ +#include <string.h> + +#include <iostream> +#include <sstream> +#include <utility> + #include <vcpkg/base/checks.h> #include <vcpkg/base/json.h> #include <vcpkg/base/stringview.h> #include <vcpkg/base/system.print.h> #include <vcpkg/base/unicode.h> - #include <vcpkg/platform-expression.h> -#include <iostream> -#include <sstream> -#include <string.h> -#include <utility> - using namespace vcpkg; namespace @@ -86,9 +86,12 @@ namespace { auto first = std::find_if(arg.begin(), arg.end(), [](char c) { return c != '-'; }); auto division = std::find(first, arg.end(), '='); - if (division == arg.end()) { + if (division == arg.end()) + { return {StringView(first, arg.end()), StringView(arg.end(), arg.end())}; - } else { + } + else + { return {StringView(first, division), StringView(division + 1, arg.end())}; } } @@ -152,8 +155,10 @@ Options: [[noreturn]] void fuzz_platform_expr_and_exit(StringView text) { - auto res1 = PlatformExpression::parse_platform_expression(text, PlatformExpression::MultipleBinaryOperators::Deny); - auto res2 = PlatformExpression::parse_platform_expression(text, PlatformExpression::MultipleBinaryOperators::Allow); + auto res1 = + PlatformExpression::parse_platform_expression(text, PlatformExpression::MultipleBinaryOperators::Deny); + auto res2 = + PlatformExpression::parse_platform_expression(text, PlatformExpression::MultipleBinaryOperators::Allow); if (!res1) { |
