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>

Public Member Functions

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

Private Attributes

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

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 305 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 309 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 307 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 311 of file ClangASTImporter.h.

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


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