This is an archive of the discontinued LLVM Phabricator instance.

[Tooling] JSONCompilationDatabase::loadFromBuffer retains the buffer, copy it.
ClosedPublic

Authored by sammccall on Dec 4 2020, 2:34 AM.

Details

Summary

This function doesn't seem to be used in-tree outside tests.
However clangd wants to use it soon, and having the CDB be self-contained seems
reasonable.

Diff Detail

Event Timeline

sammccall created this revision.Dec 4 2020, 2:34 AM
sammccall requested review of this revision.Dec 4 2020, 2:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 2:34 AM
usaxena95 accepted this revision.Dec 4 2020, 10:10 AM
This revision is now accepted and ready to land.Dec 4 2020, 10:10 AM