lint
diff --git a/benchmarks/benchmark.cpp b/benchmarks/benchmark.cpp
index 42be62b..5645da2 100644
--- a/benchmarks/benchmark.cpp
+++ b/benchmarks/benchmark.cpp
@@ -236,7 +236,7 @@
<< std::endl;
#endif
}
- if(argc > 1) {
+ if (argc > 1) {
fileload(argv[1]);
return EXIT_SUCCESS;
}
diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h
index fae0c15..1fcf301 100644
--- a/include/fast_float/ascii_number.h
+++ b/include/fast_float/ascii_number.h
@@ -293,8 +293,7 @@
answer.negative = (*p == UC('-'));
// C++17 20.19.3.(7.1) explicitly forbids '+' sign here
if ((*p == UC('-')) ||
- (allow_leading_plus &&
- !basic_json_fmt && *p == UC('+'))) {
+ (allow_leading_plus && !basic_json_fmt && *p == UC('+'))) {
++p;
if (p == pend) {
return report_parse_error<UC>(
@@ -474,7 +473,7 @@
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
parse_int_string(UC const *p, UC const *pend, T &value,
parse_options_t<UC> options) {
- //chars_format const fmt = detail::adjust_for_feature_macros(options.format);
+ // chars_format const fmt = detail::adjust_for_feature_macros(options.format);
int const base = options.base;
from_chars_result_t<UC> answer;
@@ -494,8 +493,7 @@
answer.ptr = first;
return answer;
}
- if ((*p == UC('-')) ||
- (allow_leading_plus && (*p == UC('+')))) {
+ if ((*p == UC('-')) || (allow_leading_plus && (*p == UC('+')))) {
++p;
}
diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h
index 81d9e06..2ea629b 100644
--- a/include/fast_float/parse_number.h
+++ b/include/fast_float/parse_number.h
@@ -306,9 +306,14 @@
}
bool allow_leading_plus = uint64_t(fmt & chars_format::allow_leading_plus);
bool basic_json_fmt = uint64_t(fmt & detail::basic_json_fmt);
- parsed_number_string_t<UC> pns = allow_leading_plus ?
- (basic_json_fmt ? parse_number_string<true, true, UC>(first, last, options): parse_number_string<true, false, UC>(first, last, options)) :
- (basic_json_fmt ? parse_number_string<false, true, UC>(first, last, options): parse_number_string<false, false, UC>(first, last, options));
+ parsed_number_string_t<UC> pns =
+ allow_leading_plus
+ ? (basic_json_fmt
+ ? parse_number_string<true, true, UC>(first, last, options)
+ : parse_number_string<true, false, UC>(first, last, options))
+ : (basic_json_fmt
+ ? parse_number_string<false, true, UC>(first, last, options)
+ : parse_number_string<false, false, UC>(first, last, options));
if (!pns.valid) {
if (uint64_t(fmt & chars_format::no_infnan)) {
answer.ec = std::errc::invalid_argument;