[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 27 07:37:14 PDT 2025
================
@@ -238,7 +231,13 @@ getFoldingRanges(const std::string &Code, bool LineFoldingOnly) {
AddFoldingRange(Start, End, FoldingRange::REGION_KIND);
}
+ auto Preprocessed = DirectiveStructure.stripDirectives(OrigStream);
----------------
aketchum15 wrote:
Done
https://github.com/llvm/llvm-project/pull/140959
More information about the cfe-commits
mailing list