Include sanitize blacklist and other extra deps as part of scan-deps output
authorKousik Kumar <kousikk@google.com>
Thu, 17 Oct 2019 02:14:44 +0000 (02:14 +0000)
committerKousik Kumar <kousikk@google.com>
Thu, 17 Oct 2019 02:14:44 +0000 (02:14 +0000)
commit962ca076e51c25a7a08f4e0d329c65328a635bdb
tree69f684eaf2aba8d861b7fe5df8681400e1ea9c7d
parent0f783599a4c645d8ae826f990f7b938fac6e5dae
Include sanitize blacklist and other extra deps as part of scan-deps output

Summary:
Clang's -M mode includes these extra dependencies in its output and clang-scan-deps
should have equivalent behavior, so adding these extradeps to output just like
how its being done for ".d" file generation mode.

Reviewers: arphaman, dexonsmith, Bigcheese, jkorous

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 375074
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
clang/test/ClangScanDeps/Inputs/non-header-dependency.json [new file with mode: 0644]
clang/test/ClangScanDeps/Inputs/sanitize-blacklist.txt [new file with mode: 0644]
clang/test/ClangScanDeps/non-header-dependency.cpp [new file with mode: 0644]