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