meta: linter directives (waiting for C++20 and std::span)

This commit is contained in:
Michele Caini
2024-07-10 16:43:01 +02:00
parent 98a35f0f0a
commit a53b944afc

View File

@@ -1106,6 +1106,7 @@ class meta_type {
size_type match{};
size_type pos{};
// NOLINTBEGIN(cppcoreguidelines-pro-bounds-pointer-arithmetic) - waiting for C++20 (and std::span)
for(; pos < sz && args[pos]; ++pos) {
const auto other = curr->arg(*ctx, pos);
const auto type = args[pos].type();
@@ -1116,6 +1117,7 @@ class meta_type {
break;
}
}
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
if(pos == sz) {
if(!candidate || match > same) {