sammccall added inline comments.
================ Comment at: clangd/tool/ClangdMain.cpp:169 + clangd::CodeCompleteOptions CCOpts; + CCOpts.EnableSnippets = EnableSnippets; + CCOpts.IncludeIneligibleResults = IncludeIneligibleResults; ---------------- ilya-biryukov wrote: > We should also set `IncludeCodePatterns = EnableSnippets` here. May be worth > adding a test that they are in the completion results. Good catch! Unfortunately our previous attempt this failed because static_cast is not a code pattern (probably it should be). - Added a test to completion-items-kinds. - Added documentation to the flag to indicate it does this - Changed the CodePatterns default to true (equivalent to setting it here, and keeps the defaults in one place) - set flag defaults based on CompleteOption defaults so they're in one place https://reviews.llvm.org/D39836 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits