| 1381 | //END build* |
| 1382 | |
| 1383 | DeclarationPointer Visitor::findDeclaration(CXCursor cursor) const |
| 1384 | { |
| 1385 | const auto it = m_cursorToDeclarationCache.constFind(cursor); |
| 1386 | if (it != m_cursorToDeclarationCache.constEnd()) { |
| 1387 | return *it; |
| 1388 | } |
| 1389 | |
| 1390 | // fallback, and cache result |
| 1391 | auto decl = ClangHelpers::findDeclaration(cursor, m_includes); |
| 1392 | |
| 1393 | m_cursorToDeclarationCache.insert(cursor, decl); |
| 1394 | return decl; |
| 1395 | } |
| 1396 | |
| 1397 | void Visitor::setIdTypeDecl(CXCursor typeCursor, IdentifiedType* idType) const |
| 1398 | { |
nothing calls this directly
no test coverage detected