[PATCH] D124344: [clangd] Output inlay hints with `clangd --check`

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 25 01:46:30 PDT 2022


sammccall added a comment.

(LGTM too, thanks!)



================
Comment at: clang-tools-extra/clangd/Protocol.cpp:1319
 
-llvm::json::Value toJSON(InlayHintKind K) {
+const char *toString(InlayHintKind K) {
   switch (K) {
----------------
nit: static (this doesn't need to be public)
nit: return llvm::StringLiteral (which includes the length)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124344/new/

https://reviews.llvm.org/D124344



More information about the cfe-commits mailing list