Add clang-format (#1086)

Co-authored-by: mwilsnd <mwilsnd@gmail.com>
This commit is contained in:
Bart Louwers
2023-05-01 16:57:37 +02:00
committed by GitHub
parent 403a12bd1b
commit 71f6da2722
1018 changed files with 27876 additions and 25862 deletions

View File

@@ -5,7 +5,7 @@
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4828)
#pragma warning(disable : 4828)
#endif
#include <boost/spirit/include/qi.hpp>
@@ -24,11 +24,13 @@ CacheControl CacheControl::parse(const std::string& value) {
namespace phoenix = boost::phoenix;
CacheControl result;
qi::phrase_parse(value.begin(), value.end(), (
(qi::lit("must-revalidate") [ phoenix::ref(result.mustRevalidate) = true ]) |
(qi::lit("max-age") >> '=' >> qi::ulong_long [ phoenix::ref(result.maxAge) = qi::_1 ]) |
(*(('"' >> *(('\\' >> qi::char_) | (qi::char_ - '"')) >> '"') | (qi::char_ - '"' - ',')))
) % ',', qi::ascii::space);
qi::phrase_parse(value.begin(),
value.end(),
((qi::lit("must-revalidate")[phoenix::ref(result.mustRevalidate) = true]) |
(qi::lit("max-age") >> '=' >> qi::ulong_long[phoenix::ref(result.maxAge) = qi::_1]) |
(*(('"' >> *(('\\' >> qi::char_) | (qi::char_ - '"')) >> '"') | (qi::char_ - '"' - ',')))) %
',',
qi::ascii::space);
return result;
}