Browse Source

test: identifier length

Michele Caini 1 year ago
parent
commit
02f8f00340
1 changed files with 17 additions and 17 deletions
  1. 17 17
      test/entt/meta/meta_type.cpp

+ 17 - 17
test/entt/meta/meta_type.cpp

@@ -46,9 +46,9 @@ struct abstract {
 };
 
 struct concrete: base, abstract {
-    void func(int v) override {
-        abstract::func(v);
-        value = v;
+    void func(int val) override {
+        abstract::func(val);
+        value = val;
     }
 
     int value{3};
@@ -57,8 +57,8 @@ struct concrete: base, abstract {
 struct clazz {
     clazz() = default;
 
-    clazz(const base &, int v)
-        : value{v} {}
+    clazz(const base &, int val)
+        : value{val} {}
 
     void member() {}
     static void func() {}
@@ -71,26 +71,26 @@ struct clazz {
 };
 
 struct overloaded_func {
-    [[nodiscard]] int f(const base &, int a, int b) {
-        return f(a, b);
+    [[nodiscard]] int f(const base &, int first, int second) {
+        return f(first, second);
     }
 
-    [[nodiscard]] int f(int a, const int b) {
-        value = a;
-        return b * b;
+    [[nodiscard]] int f(int first, const int second) {
+        value = first;
+        return second * second;
     }
 
-    [[nodiscard]] int f(int v) {
-        return 2 * std::as_const(*this).f(v);
+    [[nodiscard]] int f(int val) {
+        return 2 * std::as_const(*this).f(val);
     }
 
-    [[nodiscard]] int f(int v) const {
-        return v * v;
+    [[nodiscard]] int f(int val) const {
+        return val * val;
     }
 
-    [[nodiscard]] float f(int a, const float b) {
-        value = a;
-        return b + b;
+    [[nodiscard]] float f(int first, const float second) {
+        value = first;
+        return second + second;
     }
 
     int value{};