♻️ 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:
csh
2025-12-13 19:55:45 +08:00
parent f7d5a74615
commit e5782c76fa
24 changed files with 188 additions and 147 deletions
@@ -13,6 +13,7 @@ if(UNIX AND NOT APPLE)
endif()
set(SOURCES
main.cc
test_main.cppm)
add_executable(${PROJECT_NAME} ${SOURCES})
+6
View File
@@ -0,0 +1,6 @@
import lsp.test.lsp_any.main;
int main()
{
return Run();
}
+1 -1
View File
@@ -10,7 +10,7 @@ import lsp.test.lsp_any.transformer;
import lsp.test.lsp_any.facade;
import lsp.test.lsp_any.common;
int main()
export int Run()
{
lsp::test::TestRunner runner;