]> granicus.if.org Git - clang/commit
[Tooling] A CompilationDatabase wrapper that infers header commands.
authorSam McCall <sam.mccall@gmail.com>
Mon, 9 Apr 2018 15:17:39 +0000 (15:17 +0000)
committerSam McCall <sam.mccall@gmail.com>
Mon, 9 Apr 2018 15:17:39 +0000 (15:17 +0000)
commit557876ca5f15c4b446444404415b96c35257f6d4
tree218b7844f8901f5c069eb605da7f5f61eca3c4a6
parent669d5dd00e589f55ec1d84aa3477e5a106360a2d
[Tooling] A CompilationDatabase wrapper that infers header commands.

Summary:
The wrapper finds the closest matching compile command using filename heuristics
and makes minimal tweaks so it can be used with the header.

Subscribers: klimek, mgorny, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329580 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/CompilationDatabase.h
lib/Tooling/CMakeLists.txt
lib/Tooling/InterpolatingCompilationDatabase.cpp [new file with mode: 0644]
unittests/Tooling/CompilationDatabaseTest.cpp