Better heuristics, noexcept specifier and C11 _Atomic specifier

This commit is contained in:
Fangrui Song 2017-12-23 09:57:12 -08:00
parent 156d4891c3
commit 646d154b9b

View File

@ -1215,8 +1215,12 @@ void OnIndexDeclaration(CXClientData client_data, const CXIdxDeclInfo* decl) {
!type_desc.compare(offset - 5, 5, "throw")) || !type_desc.compare(offset - 5, 5, "throw")) ||
(offset >= 6 && (offset >= 6 &&
!type_desc.compare(offset - 6, 6, "typeof")) || !type_desc.compare(offset - 6, 6, "typeof")) ||
(offset >= 7 &&
!type_desc.compare(offset - 7, 7, "_Atomic")) ||
(offset >= 8 && (offset >= 8 &&
!type_desc.compare(offset - 8, 8, "decltype")) || !type_desc.compare(offset - 8, 8, "decltype")) ||
(offset >= 8 &&
!type_desc.compare(offset - 8, 8, "noexcept")) ||
(offset >= 13 && (offset >= 13 &&
!type_desc.compare(offset - 13, 13, "__attribute__")))) !type_desc.compare(offset - 13, 13, "__attribute__"))))
break; break;