Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 9,450 Lines • ▼ Show 20 Lines | if (ast) | ||||
return &ast->getASTContext(); | return &ast->getASTContext(); | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
TypeSystemClangForExpressions::TypeSystemClangForExpressions( | TypeSystemClangForExpressions::TypeSystemClangForExpressions( | ||||
Target &target, llvm::Triple triple) | Target &target, llvm::Triple triple) | ||||
: TypeSystemClang("scratch ASTContext", triple), | : TypeSystemClang("scratch ASTContext", triple), | ||||
m_target_wp(target.shared_from_this()), | m_target_wp(target.shared_from_this()), | ||||
m_persistent_variables(new ClangPersistentVariables) { | m_persistent_variables( | ||||
new ClangPersistentVariables(target.shared_from_this())) { | |||||
m_scratch_ast_source_up.reset(new ClangASTSource( | m_scratch_ast_source_up.reset(new ClangASTSource( | ||||
target.shared_from_this(), m_persistent_variables->GetClangASTImporter())); | target.shared_from_this(), m_persistent_variables->GetClangASTImporter())); | ||||
m_scratch_ast_source_up->InstallASTContext(*this); | m_scratch_ast_source_up->InstallASTContext(*this); | ||||
llvm::IntrusiveRefCntPtr<clang::ExternalASTSource> proxy_ast_source( | llvm::IntrusiveRefCntPtr<clang::ExternalASTSource> proxy_ast_source( | ||||
m_scratch_ast_source_up->CreateProxy()); | m_scratch_ast_source_up->CreateProxy()); | ||||
SetExternalSource(proxy_ast_source); | SetExternalSource(proxy_ast_source); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |