| 352 | } |
| 353 | |
| 354 | void Declaration::allocateOwnIndex() |
| 355 | { |
| 356 | ///@todo Fix multithreading stuff with template instantiation, preferably using some internal mutexes |
| 357 | // if(context() && (!context()->isAnonymous() && !d_func()->m_anonymousInContext)) { |
| 358 | // ENSURE_CAN_WRITE |
| 359 | // } |
| 360 | |
| 361 | Q_ASSERT(m_topContext); |
| 362 | |
| 363 | m_indexInTopContext = m_topContext->m_dynamicData->allocateDeclarationIndex(this, |
| 364 | d_func()->m_anonymousInContext || !context() || |
| 365 | context()->isAnonymous()); |
| 366 | Q_ASSERT(m_indexInTopContext); |
| 367 | |
| 368 | if (!m_topContext->m_dynamicData->declarationForIndex(m_indexInTopContext)) |
| 369 | qFatal("Could not re-retrieve declaration\nindex: %d", m_indexInTopContext); |
| 370 | } |
| 371 | |
| 372 | const Declaration* Declaration::logicalDeclaration(const TopDUContext* topContext) const |
| 373 | { |
nothing calls this directly
no test coverage detected