|
1 |
| -/* auto-generated on 2025-07-16 22:15:14 -0400. Do not edit! */ |
| 1 | +/* auto-generated on 2025-07-27 12:29:50 -0400. Do not edit! */ |
2 | 2 | /* begin file src/ada.cpp */
|
3 | 3 | #include "ada.h"
|
4 | 4 | /* begin file src/checkers.cpp */
|
@@ -9511,12 +9511,14 @@ bool is_label_valid(const std::u32string_view label) {
|
9511 | 9511 | for (size_t i = 0; i <= last_non_nsm_char; i++) {
|
9512 | 9512 | const direction d = find_direction(label[i]);
|
9513 | 9513 |
|
| 9514 | + // NOLINTBEGIN(bugprone-assignment-in-if-condition) |
9514 | 9515 | // In an RTL label, if an EN is present, no AN may be present, and vice
|
9515 | 9516 | // versa.
|
9516 | 9517 | if ((d == direction::EN && ((has_en = true) && has_an)) ||
|
9517 | 9518 | (d == direction::AN && ((has_an = true) && has_en))) {
|
9518 | 9519 | return false;
|
9519 | 9520 | }
|
| 9521 | + // NOLINTEND(bugprone-assignment-in-if-condition) |
9520 | 9522 |
|
9521 | 9523 | if (!(d == direction::R || d == direction::AL || d == direction::AN ||
|
9522 | 9524 | d == direction::EN || d == direction::ES || d == direction::CS ||
|
@@ -10908,6 +10910,7 @@ bool percent_encode(const std::string_view input, const uint8_t character_set[],
|
10908 | 10910 | }
|
10909 | 10911 | ada_log("percent_encode appending ", std::distance(input.begin(), pointer),
|
10910 | 10912 | " bytes");
|
| 10913 | + // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage) |
10911 | 10914 | out.append(input.data(), std::distance(input.begin(), pointer));
|
10912 | 10915 | ada_log("percent_encode processing ", std::distance(pointer, input.end()),
|
10913 | 10916 | " bytes");
|
@@ -10942,6 +10945,7 @@ bool to_ascii(std::optional<std::string>& out, const std::string_view plain,
|
10942 | 10945 | std::string percent_encode(const std::string_view input,
|
10943 | 10946 | const uint8_t character_set[], size_t index) {
|
10944 | 10947 | std::string out;
|
| 10948 | + // NOLINTNEXTLINE(bugprone-suspicious-stringview-data-usage) |
10945 | 10949 | out.append(input.data(), index);
|
10946 | 10950 | auto pointer = input.begin() + index;
|
10947 | 10951 | for (; pointer != input.end(); pointer++) {
|
@@ -12008,6 +12012,7 @@ ada_warn_unused std::string to_string(ada::state state) {
|
12008 | 12012 |
|
12009 | 12013 | #include <numeric>
|
12010 | 12014 | #include <algorithm>
|
| 12015 | +#include <iterator> |
12011 | 12016 | #include <ranges>
|
12012 | 12017 | #include <string>
|
12013 | 12018 | #include <string_view>
|
@@ -12570,6 +12575,7 @@ ada_really_inline void url::parse_path(std::string_view input) {
|
12570 | 12575 | if (has_search()) {
|
12571 | 12576 | answer.append(",\n");
|
12572 | 12577 | answer.append("\t\"query\":\"");
|
| 12578 | + // NOLINTNEXTLINE(bugprone-unchecked-optional-access) |
12573 | 12579 | helpers::encode_json(query.value(), back);
|
12574 | 12580 | answer.append("\"");
|
12575 | 12581 | }
|
@@ -13316,6 +13322,7 @@ result_type parse_url_impl(std::string_view user_input,
|
13316 | 13322 |
|
13317 | 13323 | // If c is U+002F (/), then set state to relative slash state.
|
13318 | 13324 | if ((input_position != input_size) &&
|
| 13325 | + // NOLINTNEXTLINE(bugprone-branch-clone) |
13319 | 13326 | (url_data[input_position] == '/')) {
|
13320 | 13327 | ada_log(
|
13321 | 13328 | "RELATIVE_SCHEME if c is U+002F (/), then set state to relative "
|
@@ -13848,6 +13855,7 @@ template url_aggregator parse_url<url_aggregator>(
|
13848 | 13855 | /* end file src/parser.cpp */
|
13849 | 13856 | /* begin file src/url_components.cpp */
|
13850 | 13857 |
|
| 13858 | +#include <iterator> |
13851 | 13859 | #include <string>
|
13852 | 13860 |
|
13853 | 13861 | namespace ada {
|
@@ -13897,6 +13905,7 @@ namespace ada {
|
13897 | 13905 | /* end file src/url_components.cpp */
|
13898 | 13906 | /* begin file src/url_aggregator.cpp */
|
13899 | 13907 |
|
| 13908 | +#include <iterator> |
13900 | 13909 | #include <ranges>
|
13901 | 13910 | #include <string>
|
13902 | 13911 | #include <string_view>
|
|
0 commit comments