Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/language/duchain/declaration.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 55 | DeclarationData::DeclarationData() | |||
---|---|---|---|---|---|
56 | : m_isDefinition(false) | 56 | : m_isDefinition(false) | ||
57 | , m_inSymbolTable(false) | 57 | , m_inSymbolTable(false) | ||
58 | , m_isTypeAlias(false) | 58 | , m_isTypeAlias(false) | ||
59 | , m_anonymousInContext(false) | 59 | , m_anonymousInContext(false) | ||
60 | , m_isDeprecated(false) | 60 | , m_isDeprecated(false) | ||
61 | , m_alwaysForceDirect(false) | 61 | , m_alwaysForceDirect(false) | ||
62 | , m_isAutoDeclaration(false) | 62 | , m_isAutoDeclaration(false) | ||
63 | , m_isExplicitlyDeleted(false) | 63 | , m_isExplicitlyDeleted(false) | ||
64 | , m_isExplicitlyTyped(false) | ||||
64 | { | 65 | { | ||
65 | } | 66 | } | ||
66 | 67 | | |||
67 | ///@todo Use reference counting | 68 | ///@todo Use reference counting | ||
68 | static Repositories::StringRepository& commentRepository() { | 69 | static Repositories::StringRepository& commentRepository() { | ||
69 | static Repositories::StringRepository commentRepositoryObject(QStringLiteral("Comment Repository")); | 70 | static Repositories::StringRepository commentRepositoryObject(QStringLiteral("Comment Repository")); | ||
70 | return commentRepositoryObject; | 71 | return commentRepositoryObject; | ||
71 | } | 72 | } | ||
▲ Show 20 Lines • Show All 434 Lines • ▼ Show 20 Line(s) | 506 | { | |||
506 | return d_func()->m_isExplicitlyDeleted; | 507 | return d_func()->m_isExplicitlyDeleted; | ||
507 | } | 508 | } | ||
508 | 509 | | |||
509 | void Declaration::setExplicitlyDeleted(bool deleted) | 510 | void Declaration::setExplicitlyDeleted(bool deleted) | ||
510 | { | 511 | { | ||
511 | d_func_dynamic()->m_isExplicitlyDeleted = deleted; | 512 | d_func_dynamic()->m_isExplicitlyDeleted = deleted; | ||
512 | } | 513 | } | ||
513 | 514 | | |||
515 | bool Declaration::isExplicitlyTyped() const | ||||
516 | { | ||||
517 | return d_func()->m_isExplicitlyTyped; | ||||
518 | } | ||||
519 | | ||||
520 | void Declaration::setExplicitlyTyped(bool explicitlyTyped) | ||||
521 | { | ||||
522 | d_func_dynamic()->m_isExplicitlyTyped = explicitlyTyped; | ||||
523 | } | ||||
524 | | ||||
514 | ///@todo see whether it would be useful to create an own TypeAliasDeclaration sub-class for this | 525 | ///@todo see whether it would be useful to create an own TypeAliasDeclaration sub-class for this | ||
515 | bool Declaration::isTypeAlias() const { | 526 | bool Declaration::isTypeAlias() const { | ||
516 | DUCHAIN_D(Declaration); | 527 | DUCHAIN_D(Declaration); | ||
517 | return d->m_isTypeAlias; | 528 | return d->m_isTypeAlias; | ||
518 | } | 529 | } | ||
519 | 530 | | |||
520 | void Declaration::setIsTypeAlias(bool isTypeAlias) { | 531 | void Declaration::setIsTypeAlias(bool isTypeAlias) { | ||
521 | DUCHAIN_D_DYNAMIC(Declaration); | 532 | DUCHAIN_D_DYNAMIC(Declaration); | ||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |