LLDB mainline
Classes | Functions
ClangASTImporter.cpp File Reference
#include "lldb/Core/Module.h"
#include "lldb/Utility/LLDBAssert.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/DeclObjC.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/Sema.h"
#include "llvm/Support/raw_ostream.h"
#include "Plugins/ExpressionParser/Clang/ClangASTImporter.h"
#include "Plugins/ExpressionParser/Clang/ClangASTMetadata.h"
#include "Plugins/ExpressionParser/Clang/ClangASTSource.h"
#include "Plugins/ExpressionParser/Clang/ClangExternalASTSourceCallbacks.h"
#include "Plugins/ExpressionParser/Clang/ClangUtil.h"
#include "Plugins/TypeSystem/Clang/TypeSystemClang.h"
#include <memory>
#include <optional>

Go to the source code of this file.

Classes

class  DeclContextOverride
 
struct  DeclContextOverride::Backup
 

Functions

static void MaybeCompleteReturnType (ClangASTImporter &importer, CXXMethodDecl *to_method)
 Takes a CXXMethodDecl and completes the return type if necessary.
 
static OptionalClangModuleID RemapModule (OptionalClangModuleID from_id, ClangExternalASTSourceCallbacks &from_source, ClangExternalASTSourceCallbacks &to_source)
 Recreate a module with its parents in to_source and return its id.
 

Function Documentation

◆ MaybeCompleteReturnType()

static void MaybeCompleteReturnType ( ClangASTImporter importer,
CXXMethodDecl *  to_method 
)
static

Takes a CXXMethodDecl and completes the return type if necessary.

This is currently only necessary for virtual functions with covariant return types where Clang's CodeGen expects that the underlying records are already completed.

Definition at line 991 of file ClangASTImporter.cpp.

References lldb_private::ClangASTImporter::CompleteTagDecl().

Referenced by lldb_private::ClangASTImporter::ASTImporterDelegate::Imported().

◆ RemapModule()

static OptionalClangModuleID RemapModule ( OptionalClangModuleID  from_id,
ClangExternalASTSourceCallbacks from_source,
ClangExternalASTSourceCallbacks to_source 
)
static