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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D92646  
[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. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Dec 4 2020, 10:10 AM Closed by commit rG650e04e179c9: [Tooling] JSONCompilationDatabase::loadFromBuffer retains the buffer, copy it. (authored by sammccall).  ·  Explain WhyDec 4 2020, 12:55 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 309626 clang/lib/Tooling/JSONCompilationDatabase.cpp
 clang/unittests/Tooling/CompilationDatabaseTest.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||