Skip to content

Commit 4c8740e

Browse files
MythreyaKgithub-actions[bot]
authored andcommitted
Automerge: [clangd][NFC] Improve printing of completion items in gtest failures (#152671)
2 parents e8d3b76 + fc44a4f commit 4c8740e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/clangd/CodeComplete.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,6 +2434,9 @@ CompletionItem CodeCompletion::render(const CodeCompleteOptions &Opts) const {
24342434
}
24352435

24362436
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const CodeCompletion &C) {
2437+
OS << "Signature: " << "\"" << C.Signature << "\", "
2438+
<< "SnippetSuffix: " << "\"" << C.SnippetSuffix << "\""
2439+
<< ", Rendered:";
24372440
// For now just lean on CompletionItem.
24382441
return OS << C.render(CodeCompleteOptions());
24392442
}

0 commit comments

Comments
 (0)