[C++20] [Modules] [ClangScanDeps] Enable to print make-style dependency file within...
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 10 Feb 2023 03:22:33 +0000 (11:22 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Fri, 10 Feb 2023 03:23:36 +0000 (11:23 +0800)
commite1354763b6e641e45cc2371270883fcd26edf705
treedcce7cd0a50e4a9359174e1ab32f58593be94516
parent311ff227b4327ed76156ce8691f56f8b8e12bf49
[C++20] [Modules] [ClangScanDeps] Enable to print make-style dependency file within P1689 format (4/4)

Required in https://reviews.llvm.org/D137534.

The build systems needs the information to know that "header X changed,
scanning may have changed, so please rerun scanning". Although it is
possible to get the information by running clang-scan-deps for the
second time with make format, it is not user friendly clearly.

Reviewed By: jansvoboda11

Differential Revision: https://reviews.llvm.org/D139168
clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h
clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
clang/test/ClangScanDeps/P1689.cppm
clang/tools/clang-scan-deps/ClangScanDeps.cpp