We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6eae094 + 7cfaaaa commit cc1f091Copy full SHA for cc1f091
lldb/include/lldb/Utility/CompletionRequest.h
@@ -52,8 +52,8 @@ class CompletionResult {
52
public:
53
Completion(llvm::StringRef completion, llvm::StringRef description,
54
CompletionMode mode)
55
- : m_completion(completion.str()), m_descripton(description.str()),
56
- m_mode(mode) {}
+ : m_completion(completion.rtrim().str()),
+ m_descripton(description.rtrim().str()), m_mode(mode) {}
57
const std::string &GetCompletion() const { return m_completion; }
58
const std::string &GetDescription() const { return m_descripton; }
59
CompletionMode GetMode() const { return m_mode; }
0 commit comments