Skip to content

DeclAttachmentSession

Synopsis

Declared in <Clang/clang-decl-attachment-session.hpp>

class DeclAttachmentSession;

Types

Name Description
NamespaceFragment One source-spelled namespace fragment: the expanded-token occurrences of its opening and its closing brace.
NamespaceFragmentIndex The source-spelled fragments of one reopening chain within one translation unit, ordered by opening. They are current only while the chain revision they were collected at is unchanged.

Type Aliases

Name
DeclarationList

Member Functions

Name Description
DeclAttachmentSession
DeclAttachmentSession() = default; [constructor]
Constructors
operator=
DeclAttachmentSession& operator=(DeclAttachmentSession const& other) = delete; [deleted]
Copy assignment operator
clear
void clear();
contains
bool contains( DeclarationList* declarations, SgScopeStatement* owner, SgDeclarationStatement* declaration);
containsExactly
bool containsExactly( DeclarationList* declarations, SgScopeStatement* owner, SgDeclarationStatement* declaration, char const* operation);
containsExactlyOwned
bool containsExactlyOwned( DeclarationList* declarations, SgNode* structural_owner, SgScopeStatement* semantic_owner, SgDeclarationStatement* declaration, char const* operation);
eraseExactly
void eraseExactly( DeclarationList* declarations, SgScopeStatement* owner, SgDeclarationStatement* declaration, char const* operation);
invalidate
void invalidate(DeclarationList* declarations);
lookupDeclarationsOnSameSourceLine
std::vector<SgDeclarationStatement*> const* lookupDeclarationsOnSameSourceLine( DeclarationList* declarations, Sg_File_Info const* location);
namespaceFragmentIndex
NamespaceFragmentIndex& namespaceFragmentIndex( SgNamespaceDefinitionStatement* chain, SgGlobal* global);
recordErasure
void recordErasure( DeclarationList* declarations, SgDeclarationStatement* declaration, bool declaration_remains);
recordInsertion
void recordInsertion( DeclarationList* declarations, SgDeclarationStatement* declaration);
recordReplacement
void recordReplacement( DeclarationList* declarations, SgDeclarationStatement* existing_declaration, SgDeclarationStatement* replacement_declaration);
replaceExactly
void replaceExactly( DeclarationList* declarations, SgScopeStatement* owner, SgDeclarationStatement* existing_declaration, SgDeclarationStatement* replacement_declaration, char const* operation);
retire
void retire(DeclarationList* declarations);
validateAll
void validateAll();

Private Types

Name
MembershipIndex
NamespaceChainKey
NamespaceChainKeyHash
SourceLineIndex
SourceLineKey
SourceLineKeyHash

Private Member Functions

Name
indexFor
MembershipIndex& indexFor( DeclarationList* declarations, SgNode* structural_owner, SgScopeStatement* semantic_owner);
invalidateSourceCaches
void invalidateSourceCaches(DeclarationList* declarations);

Private Static Member Functions

Name
rebuild
static void rebuild( MembershipIndex& index, DeclarationList* declarations, SgNode* structural_owner, SgScopeStatement* semantic_owner);

Private Data Members

Name
p_membership_indices
p_namespace_fragment_indices
p_source_line_indices

Created with MrDocs