#include "clang/Interpreter/CodeCompletion.h"
#include "clang/AST/ASTImporter.h"
#include "clang/AST/DeclLookups.h"
#include "clang/AST/DeclarationName.h"
#include "clang/AST/ExternalASTSource.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Frontend/ASTUnit.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Interpreter/Interpreter.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Sema/CodeCompleteConsumer.h"
#include "clang/Sema/CodeCompleteOptions.h"
#include "clang/Sema/Sema.h"
#include "llvm/Support/Debug.h"
#define DEBUG_TYPE …
namespace clang {
const std::string CodeCompletionFileName = …;
clang::CodeCompleteOptions getClangCompleteOpts() { … }
class ReplCompletionConsumer : public CodeCompleteConsumer { … };
class CompletionContextHandler { … };
class DotMemberAccessHandler : public CompletionContextHandler { … };
void ReplCompletionConsumer::ProcessCodeCompleteResults(
class Sema &S, CodeCompletionContext Context,
CodeCompletionResult *InResults, unsigned NumResults) { … }
class IncrementalSyntaxOnlyAction : public SyntaxOnlyAction { … };
class ExternalSource : public clang::ExternalASTSource { … };
void IncrementalSyntaxOnlyAction::ExecuteAction() { … }
ExternalSource::ExternalSource(ASTContext &ChildASTCtxt, FileManager &ChildFM,
ASTContext &ParentASTCtxt, FileManager &ParentFM)
: … { … }
bool ExternalSource::FindExternalVisibleDeclsByName(const DeclContext *DC,
DeclarationName Name) { … }
void ExternalSource::completeVisibleDeclsMap(
const DeclContext *ChildDeclContext) { … }
void ReplCodeCompleter::codeComplete(CompilerInstance *InterpCI,
llvm::StringRef Content, unsigned Line,
unsigned Col,
const CompilerInstance *ParentCI,
std::vector<std::string> &CCResults) { … }
}