[PATCH] D145319: [clangd] Refine logic on $0 in completion snippets
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 17 00:39:00 PDT 2023
nridge accepted this revision.
nridge added a comment.
This revision is now accepted and ready to land.
Thanks! I have just one final nit, then please feel free to merge.
================
Comment at: clang-tools-extra/clangd/CodeCompletionStrings.cpp:60
+bool shouldPatchPlaceholder0(CodeCompletionResult::ResultKind ResultKind,
+ CXCursorKind CursorKind) {
----------------
nit: let's add a short comment to describe the function, such as:
```
// Determine whether the completion string should be patched
// to replace the last placeholder with $0
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145319/new/
https://reviews.llvm.org/D145319
More information about the cfe-commits
mailing list