diff --git a/include/Compiler/Compiler.h b/include/Compiler/Compiler.h index 2d824604..05b30b65 100644 --- a/include/Compiler/Compiler.h +++ b/include/Compiler/Compiler.h @@ -16,8 +16,6 @@ std::unique_ptr createInvocation(StringRef filename, std::unique_ptr createInstance(std::shared_ptr invocation); - - /// - build AST /// - build module /// - build preamble diff --git a/tests/Feature/CodeCompletion.cpp b/tests/Feature/CodeCompletion.cpp index c3d95d96..57da7b7b 100644 --- a/tests/Feature/CodeCompletion.cpp +++ b/tests/Feature/CodeCompletion.cpp @@ -62,6 +62,9 @@ TEST(clice, CodeCompletion) { instance->setCodeCompletionConsumer(new CodeCompletionConsumer()); auto action = std::make_unique(); + // FIXME: test with preamble build, note we need to set `MaxLines` to avoid the bound exceed the location of non + // self contained file. + if(!action->BeginSourceFile(*instance, instance->getFrontendOpts().Inputs[0])) { llvm::errs() << "Failed to begin source file\n"; std::terminate();