[all-commits] [llvm/llvm-project] 2eba08: [clangd] Do not try to use $0 as a placeholder in ...

Nathan Ridge via All-commits all-commits at lists.llvm.org
Sun Jul 24 00:01:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2eba08fd9a5f42efb64ee8cc5ee0edebd8ce4bc0
      https://github.com/llvm/llvm-project/commit/2eba08fd9a5f42efb64ee8cc5ee0edebd8ce4bc0
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2022-07-24 (Sun, 24 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/CodeCompletionStrings.cpp
    M clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
    M clang-tools-extra/clangd/unittests/CodeCompletionStringsTests.cpp

  Log Message:
  -----------
  [clangd] Do not try to use $0 as a placeholder in completion snippets

$0 can only be used as a tab stop, not as a placeholder (e.g.
`${0:expression}` is not valid)

Fixes https://github.com/clangd/clangd/issues/1190

Differential Revision: https://reviews.llvm.org/D128621




More information about the All-commits mailing list