This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Fix invalid UTF8 when extracting doc comments.
ClosedPublic

Authored by sammccall on Sep 30 2020, 6:45 AM.

Diff Detail

Event Timeline

sammccall created this revision.Sep 30 2020, 6:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 30 2020, 6:45 AM
sammccall requested review of this revision.Sep 30 2020, 6:45 AM
kadircet accepted this revision.Sep 30 2020, 6:57 AM

thanks, LGTM!

Should we also have another test for SymbolCollector, to ensure we don't regress this somehow in the future?

clang-tools-extra/clangd/CodeCompletionStrings.cpp
93

it is always surprising to have these helpers in json library :D (just talking out loud)

This revision is now accepted and ready to land.Sep 30 2020, 6:57 AM

thanks, LGTM!

Should we also have another test for SymbolCollector, to ensure we don't regress this somehow in the future?

We had a SymbolCollector test for the boost case so I modified it to add a doc comment.

clang-tools-extra/clangd/CodeCompletionStrings.cpp
93

Yeah. They're just wrappers around functions from ConvertUTF.h.
Do you want a patch to move them there?

This revision was automatically updated to reflect the committed changes.
kadircet added inline comments.Oct 1 2020, 1:52 AM
clang-tools-extra/clangd/CodeCompletionStrings.cpp
93

nah, let's wait for the next time we use those :D