]> granicus.if.org Git - clang/commit
[Tooling] JSONCompilationDatabasePlugin infers compile commands for missing files
authorSam McCall <sam.mccall@gmail.com>
Fri, 14 Sep 2018 12:24:09 +0000 (12:24 +0000)
committerSam McCall <sam.mccall@gmail.com>
Fri, 14 Sep 2018 12:24:09 +0000 (12:24 +0000)
commitbff78a489e8b2883b7c8e407efac3c1cf6ffc061
tree4ffd351a9169aa7c720e904d81b1d83b81b30953
parentfdf354a5a032ec99acfe8bc4d3211540b6b78161
[Tooling] JSONCompilationDatabasePlugin infers compile commands for missing files

Summary:
See the existing InterpolatingCompilationDatabase for details on how this works.
We've been using this in clangd for a while, the heuristics seem to work well.

Reviewers: bkramer

Subscribers: ilya-biryukov, ioeric, kadircet, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342228 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/JSONCompilationDatabase.cpp
test/Tooling/auto-detect-from-source.cpp