With the addition of inlay hints to clangd, it would be useful to output them during verbose clangd --check.
This patch adds an output step for inlay hints and unifies the way --check-lines are passed around
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/tool/Check.cpp | ||
---|---|---|
201 | Looks reasonable to me. |
can you please upload the patch with full context? see https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface
clang-tools-extra/clangd/tool/Check.cpp | ||
---|---|---|
196 | this function always returns true, let's make it void | |
201 | we usually override the llvm::raw_ostream operator<< instead, can you do that for InlayHint and log Hint directly here? | |
222 | this should be LineRange && !LineRange->contains | |
296 | failing inlay hints should not fail the rest, can you put it after C.testLocationFatures call below instead? |
Review updates
- Fix inverted check-lines condition
- Output InlayHintKind via ostream operators
(LGTM too, thanks!)
clang-tools-extra/clangd/Protocol.cpp | ||
---|---|---|
1322 | nit: static (this doesn't need to be public) |
nit: static (this doesn't need to be public)
nit: return llvm::StringLiteral (which includes the length)