[all-commits] [llvm/llvm-project] 650e04: [Tooling] JSONCompilationDatabase::loadFromBuffer ...

Sam McCall via All-commits all-commits at lists.llvm.org
Fri Dec 4 12:55:26 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 650e04e179c9d355cd6d8f9a108d60c7969d24ca
      https://github.com/llvm/llvm-project/commit/650e04e179c9d355cd6d8f9a108d60c7969d24ca
  Author: Sam McCall <sam.mccall at gmail.com>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M clang/lib/Tooling/JSONCompilationDatabase.cpp
    M clang/unittests/Tooling/CompilationDatabaseTest.cpp

  Log Message:
  -----------
  [Tooling] JSONCompilationDatabase::loadFromBuffer retains the buffer, copy it.

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.

Differential Revision: https://reviews.llvm.org/D92646




More information about the All-commits mailing list