LLDB  mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope Class Reference

Scope guard that attaches a CxxModuleHandler to an ASTImporterDelegate and deattaches it at the end of the scope. More...

#include <ClangASTImporter.h>

Collaboration diagram for lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope:
Collaboration graph
[legend]

Public Member Functions

 CxxModuleScope (ASTImporterDelegate &delegate, clang::ASTContext *dst_ctx)
 
 ~CxxModuleScope ()
 

Private Attributes

CxxModuleHandler m_handler
 The handler we attach to the ASTImporterDelegate. More...
 
ASTImporterDelegatem_delegate
 The ASTImporterDelegate we are supposed to attach the handler to. More...
 
bool m_valid = false
 True iff we attached the handler to the ASTImporterDelegate. More...
 

Detailed Description

Scope guard that attaches a CxxModuleHandler to an ASTImporterDelegate and deattaches it at the end of the scope.

Supports being used multiple times on the same ASTImporterDelegate instance in nested scopes.

Definition at line 283 of file ClangASTImporter.h.

Constructor & Destructor Documentation

◆ CxxModuleScope()

lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope::CxxModuleScope ( ASTImporterDelegate delegate,
clang::ASTContext *  dst_ctx 
)
inline

◆ ~CxxModuleScope()

lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope::~CxxModuleScope ( )
inline

Member Data Documentation

◆ m_delegate

ASTImporterDelegate& lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope::m_delegate
private

The ASTImporterDelegate we are supposed to attach the handler to.

Definition at line 287 of file ClangASTImporter.h.

Referenced by ~CxxModuleScope().

◆ m_handler

CxxModuleHandler lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope::m_handler
private

The handler we attach to the ASTImporterDelegate.

Definition at line 285 of file ClangASTImporter.h.

Referenced by CxxModuleScope(), and ~CxxModuleScope().

◆ m_valid

bool lldb_private::ClangASTImporter::ASTImporterDelegate::CxxModuleScope::m_valid = false
private

True iff we attached the handler to the ASTImporterDelegate.

Definition at line 289 of file ClangASTImporter.h.

Referenced by CxxModuleScope(), and ~CxxModuleScope().


The documentation for this class was generated from the following file: