[PATCH] D38425: [clangd] Document highlights for clangd
Marc-Andre Laperle via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 29 14:02:29 PDT 2017
malaperle added a comment.
Just a few quick comments.
================
Comment at: clangd/ClangdServer.cpp:295
+ assert(FileContents.Draft &&
+ "findDefinitions is called for non-added document");
+
----------------
findDocumentHighlights?
================
Comment at: clangd/ClangdServer.cpp:300
+ std::shared_ptr<CppFile> Resources = Units.getFile(File);
+ assert(Resources && "Calling findDefinitions on non-added file");
+
----------------
findDocumentHighlights?
================
Comment at: clangd/Protocol.cpp:782
+ llvm::raw_string_ostream(Result) << llvm::format(
+ R"({"range": %s, "number": %d})", Range::unparse(DH.range).c_str(), DH.kind);
+ return Result;
----------------
number -> kind
https://reviews.llvm.org/D38425
More information about the cfe-commits
mailing list