♻️ refactor(lsp_server): move entrypoints out of named modules
- export Run() from launcher module and add non-module main TU - apply same pattern to module-based test executables - migrate utils/string implementation fully into string.cppm and drop string.cpp - point clangd to linux build compilation database
This commit is contained in:
@@ -18,10 +18,10 @@ endif()
|
||||
set(CMAKE_EXPERIMENTAL_CXX_MODULE_DYNDEP 1)
|
||||
|
||||
set(SOURCES
|
||||
main.cc
|
||||
test.cppm
|
||||
debug_printer.cppm
|
||||
../../src/utils/string.cppm
|
||||
../../src/utils/string.cpp
|
||||
../../src/tree-sitter/scanner.c
|
||||
../../src/tree-sitter/parser.c)
|
||||
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import lsp.test.ast.main;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
return Run(argc, argv);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ void PrintUsage(const char* program_name)
|
||||
std::cout << " " << program_name << " test.tsf -s -n # Show source without colors\n";
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
export int Run(int argc, char* argv[])
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user