[PATCH] D37101: [clangd] [WIP] Add support for snippet completions

Ilya Biryukov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 1 02:41:32 PDT 2017


ilya-biryukov added inline comments.


================
Comment at: clangd/ClangdUnit.cpp:418
+        // for functions and methods, the return type.
+        assert(item.detail.empty() && "Unexpected extraneous CK_ResultType");
+        Item.detail = Chunk.Text;
----------------
Typo: should be `Item` instead of `item`.

Otherwise this does not compile with assertions enabled.


https://reviews.llvm.org/D37101





More information about the cfe-commits mailing list