]> granicus.if.org Git - clang/commit
[Tooling] add a Heuristic field indicating that a CompileCommand was guessed.
authorSam McCall <sam.mccall@gmail.com>
Fri, 5 Apr 2019 15:22:20 +0000 (15:22 +0000)
committerSam McCall <sam.mccall@gmail.com>
Fri, 5 Apr 2019 15:22:20 +0000 (15:22 +0000)
commit151df10ca73b93b5baca28c9457b33047960b3f6
tree4fa20ad2214e46a9bfccb08bec068e531646e633
parent5d7419d71c87143af9b4a24e40820c6d94956783
[Tooling] add a Heuristic field indicating that a CompileCommand was guessed.

Summary:
Use cases:
 - a tool that dumps the heuristic used for each header in a project can
   be used to evaluate changes to the heuristic
 - we want to expose this information to users in clangd as it affects
   accuracy/reliability of editor features
 - express interpolation tests more directly

Reviewers: ilya-biryukov, klimek

Subscribers: ioeric, kadircet, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357770 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Tooling/CompilationDatabase.h
lib/Tooling/InterpolatingCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp