[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-09-21 Thread Ruihua Dong via cfe-commits
https://github.com/144026 closed https://github.com/llvm/llvm-project/pull/80592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-02-22 Thread Ruihua Dong via cfe-commits
https://github.com/144026 updated https://github.com/llvm/llvm-project/pull/80592 >From 01a9cefb0c8400a5b8f1bab73f6307e5ff5e62c1 Mon Sep 17 00:00:00 2001 From: Ruihua Dong Date: Sun, 4 Feb 2024 16:39:22 +0800 Subject: [PATCH] [clangd] Implement simple folding of preprocessor branches Extract d

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-02-22 Thread Ruihua Dong via cfe-commits
144026 wrote: Any updates on pseudo parser removal? It seems like clangd/vscode-clangd#297 is open for this as well, and people have been using vscode-explicit-folding as a workaround. @sam-mccall Would it be possible to apply and keep pp folding support before foldingRange support is put back

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-02-04 Thread Ruihua Dong via cfe-commits
144026 wrote: The build pipeline failure is on Windows x64, and appears to be some random error irrelevant to this patch: ``` MT: command "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\mt.exe /nologo /manifest bin\dexp.exe.manifest /outputresource:bin\dexp.exe;#1" failed (exit co

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-02-04 Thread Ruihua Dong via cfe-commits
144026 wrote: @zyn0217 Thanks for the information, seems like a completed removal of pseudo parser has been decided in this [discourse thread](https://discourse.llvm.org/t/removing-pseudo-parser/71131), and shifting back to AST parser for foldingRange support would only lose a marginal multi

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (PR #80592)

2024-02-04 Thread Ruihua Dong via cfe-commits
https://github.com/144026 created https://github.com/llvm/llvm-project/pull/80592 Extract directive branches information from DirectiveTree, fold branches that don't end with eof. Fixes https://github.com/clangd/clangd/issues/1661 Examples: Folded: https://github.com/llvm/llvm-project/asset