Skip to content

Commit fc44a4f

Browse files
authored
[clangd][NFC] Improve printing of completion items in gtest failures (#152671)
1 parent 92164fa commit fc44a4f

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)