Serve formatting through clang-format

Per the user's decision, textDocument/formatting runs clang-format as a
bounded child process with a 5s deadline and capped streams. A bounded
core builds the arguments (workspace .clang-format when present,
otherwise the LSP tab options as an explicit LLVM style) and the
whole-document edit, refusing output over 32 MiB. Registered feature
tests cover the arguments, bounds and edit shape; a real stdio session
formatted a misindented document. clang-format becomes a runtime
dependency of formatting.
This commit is contained in:
faumaray committed 2026-12-05 21:30:44 +03:00
1 parent 7acbfc4029
commit 3344a9f170
12 files changed
+247 -5

No files matched your search

+1 -1
View File
@@ -25,6 +25,7 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
| textDocument/codeLens + workspace/executeCommand (`vls.showReferences`) | `vls_feature_tests`, real stdio session |
| workspace/symbol | stock occurrence corpus |
| textDocument/documentLink (quoted includes) | `vls_feature_tests`, real stdio session |
| textDocument/formatting (clang-format) | `vls_feature_tests`, real stdio session |
| workspace fileOperations (didCreate/didRename/didDelete) | `vls_feature_tests`, real stdio session |
| workspace/willRenameFiles (include updates) | `vls_feature_tests`, real stdio session |
| voidLanguageServer/analysisStatus, providerStatus | stdio corpora |
@@ -41,7 +42,6 @@ missing part. Updated December 5, 2026 after semantic tokens and inlay hints.
| Client-side application of server-issued workspace edits | rename and code actions return edits the clients apply directly |
| Applying multi-file renames through client buffers | plans can be ready; application is client work |
| richer token types | legend is one type (`function`) plus a `declaration` modifier; type tokens need compiler-provided spans |
| textDocument/formatting | no formatter is available; needs a dependency decision |
## Next slices