[C++20] [Modules] [ClangScanDeps] Ensure that we can mix the use of and clang modules
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 15 Feb 2023 02:59:07 +0000 (10:59 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Wed, 15 Feb 2023 03:00:03 +0000 (11:00 +0800)
commit8d995b26c7559f273809d0d29e5042850e47165a
treeb6212b8819437fb88cb0ac3bca664acffc2e772a
parentaef76fe554ee9426b8915e67ae50cecb8dba2e0e
[C++20] [Modules] [ClangScanDeps] Ensure that we can mix the use of and clang modules

Add a test to ensure that the clang-scan-deps won't crash due to the
unexpected use of clang modules.
clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
clang/test/ClangScanDeps/P1689.cppm