function signature: blacklist "typeof "

This commit is contained in:
Fangrui Song 2017-12-27 19:51:16 -08:00
parent 6fa08b2b90
commit f86de0b544

View File

@ -1103,6 +1103,7 @@ std::string GetFunctionSignature(IndexFile* db,
!((i >= 5 && !type_desc.compare(i - 5, 5, "throw")) || !((i >= 5 && !type_desc.compare(i - 5, 5, "throw")) ||
(i >= 6 && !type_desc.compare(i - 6, 6, "typeof")) || (i >= 6 && !type_desc.compare(i - 6, 6, "typeof")) ||
(i >= 7 && !type_desc.compare(i - 7, 7, "_Atomic")) || (i >= 7 && !type_desc.compare(i - 7, 7, "_Atomic")) ||
(i >= 7 && !type_desc.compare(i - 7, 7, "typeof ")) ||
(i >= 8 && !type_desc.compare(i - 8, 8, "decltype")) || (i >= 8 && !type_desc.compare(i - 8, 8, "decltype")) ||
(i >= 8 && !type_desc.compare(i - 8, 8, "noexcept")) || (i >= 8 && !type_desc.compare(i - 8, 8, "noexcept")) ||
(i >= 13 && (i >= 13 &&
@ -1113,7 +1114,6 @@ std::string GetFunctionSignature(IndexFile* db,
break; break;
} }
} }
//volatile int z=0;while(!z)asm("pause");
if (function_name_offset >= 0) { if (function_name_offset >= 0) {
if (num_args > 0) { if (num_args > 0) {