Recommit [C++20] [Modules] [ClangScanDeps] Allow clang-scan-deps to without specified...
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 13 Feb 2023 03:01:24 +0000 (11:01 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Mon, 13 Feb 2023 03:01:24 +0000 (11:01 +0800)
commit212d905643bd9cf6f80175c774ba7ab831c89e46
tree0a4d6f810611bca8aea5a389a79a041047fb366e
parenteb70b38f838f6a3511dcbbc33f3ee81a4d05ede1
Recommit [C++20] [Modules] [ClangScanDeps] Allow clang-scan-deps to without specified compilation database in P1689 (3/4)

In a private chat with @ben.boeckel , we get in consensus it would be
great for cmake if the invocation of clang-scan-deps can get rid of
compilation database. Due to the compilation database can't do very well
for the files which are not existed yet. @ben.boeckel may have more
context to add here.

This patch should be innocent for others usages.

Reviewed By: jansvoboda11

Differential Revision: https://reviews.llvm.org/D137534
clang/test/ClangScanDeps/P1689.cppm
clang/tools/clang-scan-deps/ClangScanDeps.cpp