♻️ 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:
@@ -13,6 +13,7 @@ if(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
main.cc
|
||||
test_main.cppm)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCES})
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import lsp.test.lsp_any.main;
|
||||
|
||||
int main()
|
||||
{
|
||||
return Run();
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user