[clangd][NFC] Improve printing of completion items in gtest failures (#152671)

This commit is contained in:
Mythreya Kuricheti 2025-08-09 00:28:02 -07:00 committed by GitHub
parent 92164faf17
commit fc44a4fcd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2434,6 +2434,9 @@ CompletionItem CodeCompletion::render(const CodeCompleteOptions &Opts) const {
}
llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const CodeCompletion &C) {
OS << "Signature: " << "\"" << C.Signature << "\", "
<< "SnippetSuffix: " << "\"" << C.SnippetSuffix << "\""
<< ", Rendered:";
// For now just lean on CompletionItem.
return OS << C.render(CodeCompleteOptions());
}