[clangd] Implement simple folding for preprocessor branches (#140959)
This pull request builds on
https://github.com/llvm/llvm-project/pull/121449 by sr-tream with
a unit test and a bug fix.
---------
Co-authored-by: Ruihua Dong <dongruihua.drh@alibaba-inc.com>