Changeset View
Changeset View
Standalone View
Standalone View
source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
Context not available. | |||||
#include "ASTDumper.h" | #include "ASTDumper.h" | ||||
#include "ClangModulesDeclVendor.h" | #include "ClangModulesDeclVendor.h" | ||||
#include "clang/AST/ASTContext.h" | |||||
#include "clang/AST/RecordLayout.h" | |||||
#include "lldb/Core/Log.h" | #include "lldb/Core/Log.h" | ||||
#include "lldb/Core/Module.h" | #include "lldb/Core/Module.h" | ||||
#include "lldb/Core/ModuleList.h" | #include "lldb/Core/ModuleList.h" | ||||
#include "lldb/Symbol/ClangASTContext.h" | #include "lldb/Symbol/ClangASTContext.h" | ||||
#include "lldb/Symbol/ClangUtil.h" | |||||
#include "lldb/Symbol/CompilerDeclContext.h" | #include "lldb/Symbol/CompilerDeclContext.h" | ||||
#include "lldb/Symbol/Function.h" | #include "lldb/Symbol/Function.h" | ||||
#include "lldb/Symbol/SymbolFile.h" | #include "lldb/Symbol/SymbolFile.h" | ||||
Context not available. | |||||
#include "lldb/Symbol/TaggedASTType.h" | #include "lldb/Symbol/TaggedASTType.h" | ||||
#include "lldb/Target/ObjCLanguageRuntime.h" | #include "lldb/Target/ObjCLanguageRuntime.h" | ||||
#include "lldb/Target/Target.h" | #include "lldb/Target/Target.h" | ||||
#include "clang/AST/ASTContext.h" | |||||
#include "clang/AST/RecordLayout.h" | |||||
#include <vector> | #include <vector> | ||||
Context not available. | |||||
if (!clang_type) | if (!clang_type) | ||||
continue; | continue; | ||||
const TagType *tag_type = ClangASTContext::GetQualType(clang_type)->getAs<TagType>(); | const TagType *tag_type = ClangUtil::GetQualType(clang_type)->getAs<TagType>(); | ||||
if (!tag_type) | if (!tag_type) | ||||
continue; | continue; | ||||
Context not available. | |||||
if (!clang_type) | if (!clang_type) | ||||
continue; | continue; | ||||
const TagType *tag_type = ClangASTContext::GetQualType(clang_type)->getAs<TagType>(); | const TagType *tag_type = ClangUtil::GetQualType(clang_type)->getAs<TagType>(); | ||||
if (!tag_type) | if (!tag_type) | ||||
continue; | continue; | ||||
Context not available. | |||||
SetImportInProgress(true); | SetImportInProgress(true); | ||||
QualType copied_qual_type = m_ast_importer_sp->CopyType (m_ast_context, src_ast->getASTContext(), ClangASTContext::GetQualType(src_type)); | QualType copied_qual_type = | ||||
m_ast_importer_sp->CopyType(m_ast_context, src_ast->getASTContext(), ClangUtil::GetQualType(src_type)); | |||||
SetImportInProgress(false); | SetImportInProgress(false); | ||||
Context not available. | |||||
clang::ASTContext *ast = lldb_ast->getASTContext(); | clang::ASTContext *ast = lldb_ast->getASTContext(); | ||||
clang::NamedDecl *Decl = VarDecl::Create(*ast, | clang::NamedDecl *Decl = VarDecl::Create(*ast, const_cast<DeclContext *>(m_decl_context), SourceLocation(), | ||||
const_cast<DeclContext*>(m_decl_context), | SourceLocation(), ii, ClangUtil::GetQualType(type), 0, SC_Static); | ||||
SourceLocation(), | |||||
SourceLocation(), | |||||
ii, | |||||
ClangASTContext::GetQualType(type), | |||||
0, | |||||
SC_Static); | |||||
m_decls.push_back(Decl); | m_decls.push_back(Decl); | ||||
return Decl; | return Decl; | ||||
Context not available. | |||||
m_function_types.insert(type); | m_function_types.insert(type); | ||||
QualType qual_type (ClangASTContext::GetQualType(type)); | QualType qual_type(ClangUtil::GetQualType(type)); | ||||
clang::ASTContext *ast = lldb_ast->getASTContext(); | clang::ASTContext *ast = lldb_ast->getASTContext(); | ||||
Context not available. | |||||
{ | { | ||||
if (clang_type) | if (clang_type) | ||||
{ | { | ||||
QualType qual_type = ClangASTContext::GetQualType(clang_type); | QualType qual_type = ClangUtil::GetQualType(clang_type); | ||||
if (const TypedefType *typedef_type = llvm::dyn_cast<TypedefType>(qual_type)) | if (const TypedefType *typedef_type = llvm::dyn_cast<TypedefType>(qual_type)) | ||||
{ | { | ||||
Context not available. |