Warning, /sdk/clazy/tests/qt6-qhash-signature/main.cpp.fixed.expected is written in an unsupported language. File is not indexed.
0001 #include <QtCore/QHash> 0002 #include <QtCore/QString> 0003 0004 class Employee 0005 { 0006 public: 0007 Employee() {} 0008 Employee(const QString &name); 0009 QString name() {return myName;} 0010 size_t test_var = qHash("blabla", 0); 0011 0012 private: 0013 QString myName; 0014 }; 0015 0016 inline size_t qHash(Employee *key, size_t seed) 0017 { 0018 return qHash(key->name(), seed) ^ 4; 0019 } 0020 0021 size_t test_var_2 = qHash("blabla", 0); 0022 0023 size_t anotherFunction() 0024 { 0025 int toto_NOT_qhash_related = 3; 0026 return qHash("blabla", 0); 0027 } 0028 0029 void test() 0030 { 0031 QString name = "Bob"; 0032 Employee *theemploye = new Employee(name); 0033 size_t foo = qHash(theemploye, 0); 0034 size_t foo_g = qHash(theemploye, 0); 0035 0036 unsigned char p[2]; 0037 size_t foo_bits = qHashBits(p, 0, 0); 0038 static const int ints[] = {0, 1, 2, 3, 4, 5}; 0039 size_t foo_range = qHashRange(ints, ints); 0040 size_t foo_rangec = qHashRangeCommutative(ints, ints); 0041 } 0042