[PATCH] D67536: [WIP] [clangd] Add support for an inactive regions notification

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 22:32:00 PDT 2019


nridge created this revision.
nridge added reviewers: sammccall, ilya-biryukov, hokein.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay.
Herald added a project: clang.
nridge added a comment.

This patch adds server-side support for greying out code in inactive preprocessor branches (issue #132 <https://github.com/clangd/clangd/issues/132>).

I didn't write test yet. I wanted to post the patch for feedback first, to see if the general approach is ok.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67536

Files:
  clang-tools-extra/clangd/ClangdLSPServer.cpp
  clang-tools-extra/clangd/ClangdLSPServer.h
  clang-tools-extra/clangd/ClangdServer.cpp
  clang-tools-extra/clangd/ClangdServer.h
  clang-tools-extra/clangd/Compiler.cpp
  clang-tools-extra/clangd/Protocol.cpp
  clang-tools-extra/clangd/Protocol.h
  clang-tools-extra/clangd/SemanticHighlighting.cpp
  clang-tools-extra/clangd/SemanticHighlighting.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67536.220042.patch
Type: text/x-patch
Size: 8513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190913/483dccc9/attachment-0001.bin>


More information about the cfe-commits mailing list