LLDB mainline
|
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. | |
ASTImporterDelegate & | m_delegate |
The ASTImporterDelegate we are supposed to attach the handler to. | |
bool | m_valid = false |
True iff we attached the handler to the ASTImporterDelegate. | |
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.
|
inline |
Definition at line 314 of file ClangASTImporter.h.
References m_handler, lldb_private::ClangASTImporter::ASTImporterDelegate::m_std_handler, and m_valid.
|
inline |
Definition at line 324 of file ClangASTImporter.h.
References m_delegate, m_handler, lldb_private::ClangASTImporter::ASTImporterDelegate::m_std_handler, and m_valid.
|
private |
The ASTImporterDelegate we are supposed to attach the handler to.
Definition at line 309 of file ClangASTImporter.h.
Referenced by ~CxxModuleScope().
|
private |
The handler we attach to the ASTImporterDelegate.
Definition at line 307 of file ClangASTImporter.h.
Referenced by CxxModuleScope(), and ~CxxModuleScope().
|
private |
True iff we attached the handler to the ASTImporterDelegate.
Definition at line 311 of file ClangASTImporter.h.
Referenced by CxxModuleScope(), and ~CxxModuleScope().