Changeset View
Changeset View
Standalone View
Standalone View
plugins/clang/duchain/builder.cpp
Show First 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | 418 | if (decl && decl->indexedIdentifier() == indexedId) { | |||
---|---|---|---|---|---|
423 | m_parentContext->previousChildDeclarations.erase(it); | 423 | m_parentContext->previousChildDeclarations.erase(it); | ||
424 | return decl; | 424 | return decl; | ||
425 | } | 425 | } | ||
426 | ++it; | 426 | ++it; | ||
427 | } | 427 | } | ||
428 | } | 428 | } | ||
429 | auto decl = new DeclType(range, nullptr); | 429 | auto decl = new DeclType(range, nullptr); | ||
430 | decl->setIdentifier(id); | 430 | decl->setIdentifier(id); | ||
431 | #if CINDEX_VERSION_MINOR >= 32 | ||||
432 | decl->setExplicitlyTyped(clang_getCursorType(cursor).kind != CXType_Auto); | ||||
433 | #endif | ||||
431 | m_cursorToDeclarationCache[cursor] = decl; | 434 | m_cursorToDeclarationCache[cursor] = decl; | ||
432 | setDeclData<CK>(cursor, decl); | 435 | setDeclData<CK>(cursor, decl); | ||
433 | { | 436 | { | ||
434 | DUChainWriteLocker lock; | 437 | DUChainWriteLocker lock; | ||
435 | decl->setContext(m_parentContext->context); | 438 | decl->setContext(m_parentContext->context); | ||
436 | } | 439 | } | ||
437 | return decl; | 440 | return decl; | ||
438 | } | 441 | } | ||
▲ Show 20 Lines • Show All 1148 Lines • Show Last 20 Lines |