Add a compiler-independent document outline
A bounded scanner recognizes namespace, class/struct, enum and function declarations at line starts from document text alone, skipping preprocessor lines, comments and control statements. documentSymbol merges it with observer-fed index records, so the generic path has a real outline with no compiler-specific artifact. Registered feature tests cover recognition, call exclusion, comments, ranges and bounds; the generic stdio session returned main as a function symbol.
This commit is contained in:
1 parent
5598371fcb
commit
103b38a291
8 files changed
+313
-3
No files matched your search
@@ -81,6 +81,7 @@ void build(Void::Build::Project &project) {
|
||||
"src/features/DocumentLinks.cpp",
|
||||
"src/features/Formatting.cpp",
|
||||
"src/features/TypeHierarchy.cpp",
|
||||
"src/features/Outline.cpp",
|
||||
"src/debug/live/LiveSession.cpp",
|
||||
"src/modules/ModuleWorkQueue.cpp",
|
||||
"src/modules/GccScan.cpp",
|
||||
@@ -165,7 +166,7 @@ void build(Void::Build::Project &project) {
|
||||
"tests/features/FileOperationsTests.cpp", "tests/features/IncludeUpdateTests.cpp",
|
||||
"tests/features/CallHierarchyTests.cpp", "tests/features/CodeLensTests.cpp",
|
||||
"tests/features/DocumentLinksTests.cpp", "tests/features/FormattingTests.cpp",
|
||||
"tests/features/TypeHierarchyTests.cpp"});
|
||||
"tests/features/TypeHierarchyTests.cpp", "tests/features/OutlineTests.cpp"});
|
||||
auto live_worker = project.executable("vls_live_worker_fixture");
|
||||
live_worker.cxx_standard(CxxStandard::Cxx26)
|
||||
.sources({"tests/debug/LiveWorkerFixture.cpp"})
|
||||
|
||||
Reference in new issue
Block a user