Browse Source

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

Michele Caini 1 year ago
parent
commit
a53b944afc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/entt/meta/meta.hpp

+ 2 - 0
src/entt/meta/meta.hpp

@@ -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) {