Commit e6f6dc6c authored by Milian Wolff's avatar Milian Wolff

ellide overly long result types, esp. an issue for templates sometimes.

parent 096de764
......@@ -235,6 +235,12 @@ QList<CompletionTreeItemPointer> ClangCodeCompletionContext::completionItems(con
display += string;
}
}
if (resultType.size() > 23) {
// ellide text to the right for overly long result types (templates especially)
resultType.replace(20, resultType.size() - 20, "...");
}
if (result.CursorKind != CXCursor_MacroDefinition && result.CursorKind != CXCursor_NotImplemented) {
const Identifier id(typed);
QualifiedIdentifier qid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment