mirror-llvm-project/clang/test/ClangScanDeps
Qiongsi Wu 5f4d725bca
[clang][DependencyScanning] Implement the Streaming Style By-name Scanning API (#211406)
This PR implements a streaming stype by-name scanning API. The new API
takes a `DependencyConsumer`, a `DiagnosticsConsumer` and a
`getNextName` lambda. Any diagnositcs flow to the `DependencyConsumer`,
and the results flows to to `DependencyConsumer`. The `getNextName`
lambda is allows the client to stream names into the API, and the API
keeps scanning dependencies for input names until `getNextName` does not
return more names.

rdar://178088113

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
2026-07-31 08:54:13 -07:00
..
Inputs
_Pragma-once.c
build-session-validation-outdated-module.c [Modules] Fix spurious errors about module input file changing after .pcm file was built. (#176537) 2026-01-21 21:31:53 -08:00
build-session-validation-relocated-modules.c cp -r replaces symlinks, update to cp -R (#201463) 2026-06-18 16:09:10 -07:00
canonicalize-macros-multiarch.c [clang][DependencyScanning] Adding a Multiarch clang-scan-deps Test (#211404) 2026-07-29 15:16:26 -07:00
depscan-lex-has-include.c
diagnostic-pragmas.c
diagnostics.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
empty.cpp
error.cpp [clang][deps] Prefer DiagnosticConsumer over llvm::{Error,Expected} (#172389) 2025-12-16 08:54:42 -08:00
fatal-module-loader-error.m [clang][deps] Stop lexing if hit a failure while loading a PCH/module in a submodule. (#146976) 2025-07-07 12:28:03 -07:00
generate-modules-path-args.c [clang] Report direct module deps for explicitly built modules (#190757) 2026-04-07 16:03:20 -07:00
has_include_if_elif.cpp
header-search-case-sensitivity.c
header-search-pruning-transitive.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
header-search-pruning.cpp cp -r replaces symlinks, update to cp -R (#201463) 2026-06-18 16:09:10 -07:00
header_stat_before_open.m [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
headerwithdirname.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
headerwithdirnamefollowedbyinclude.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
implicit-target.c
line-directive.c
link-libraries.c [clang][DependencyScanning] Implementation of CompilerInstanceWithContext to Improve By-Name Queries (#164345) 2025-11-07 12:58:56 -08:00
logging-drop-pcm.c [clang][DependencyScanning] Logging Dependency Scanning Events (#195896) 2026-07-16 10:41:22 -07:00
logging-simple-by-name.c [clang][DependencyScanning] Logging Dependency Scanning Events (#195896) 2026-07-16 10:41:22 -07:00
logging-simple.c [clang][DependencyScanning] Logging Dependency Scanning Events (#195896) 2026-07-16 10:41:22 -07:00
logging-two-threads.c [clang][ClangScanDeps] Relax logging-two-threads for duplicate module validation (#210587) 2026-07-28 11:06:17 -07:00
macro-expansions.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
missing-vfs.m
module-format.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
module-in-stable-dir-by-name.c [clang][DependencyScanning] Add Test Coverage of StabeDirs during By-Name Lookups (#168143) 2025-11-18 10:56:07 -08:00
modulemap-via-vfs.m
modules-async-scan.c [clang][DependencyScanning] Adding a test that exercies the async-scanning code path (#211402) 2026-07-29 15:16:25 -07:00
modules-by-name-detailed-preprocessing-record.c [clang][DependencyScanning] Preserve Necessary Preprocessor Callbacks during By-name Lookup (#197731) 2026-05-15 13:19:54 -07:00
modules-byname-dup-module-decl-diag.c [clang][Modules] Diagnosing Module Redefinition Across ModuleMaps (#190085) 2026-04-08 14:22:07 -07:00
modules-canononical-module-map-case.c
modules-cc1.cpp [clang][deps] Use ModuleDepCollector for Make output (#182063) 2026-05-08 12:54:52 -07:00
modules-context-hash-cwd.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
modules-context-hash-from-named-module.cpp [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-context-hash-ignore-macros.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-context-hash-module-map-path.c [clang][modules] Unify "context hash" and "specific module cache path" (#176215) 2026-01-15 12:02:31 -08:00
modules-context-hash-outputs.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-context-hash-warnings.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-context-hash.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-current-modulemap-file-dep.c [clang][deps] Add module map describing compiled module to file dependencies. (#160226) 2025-11-19 20:17:43 -08:00
modules-cycle-deadlock.c [clang][modules] Prevent deadlock in module cache (#182722) 2026-02-27 09:36:14 -08:00
modules-debug-dir.c [clang][ScanDeps] Clear compilation directory if needed (#150129) 2025-08-01 11:01:34 -07:00
modules-dep-args.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-disable-free.c
modules-excluded-header.m
modules-extern-submodule.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-extern-unrelated.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-file-name-as-requested.m
modules-file-path-isolation.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
modules-fmodule-name-no-module-built.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-full-by-mod-name.c [clang-scan-deps] Add scan-deps-filter.py test helper to filter full output (#206758) 2026-07-01 11:53:06 -07:00
modules-full-by-mult-mod-names-diagnostics.c [clang][DependencyScanning] Implement the Streaming Style By-name Scanning API (#211406) 2026-07-31 08:54:13 -07:00
modules-full-by-mult-mod-names.c [clang][DependencyScanning] Move driver-command logic for by-name scanning into DependencyScanningTool (#171238) 2025-12-13 04:44:26 +05:30
modules-full-named-modules.cppm [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-full-output-tu-order.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-full.cpp [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-has-include-umbrella-header.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-header-sharing.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-implementation-module-map.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-implementation-private.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-implementation-vfs.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-implicit-dot-private.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-implied-args.c
modules-in-stable-dirs.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
modules-incomplete-umbrella.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-inferred.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-invalid-target.c [clang][DependencyScanning] Implement the Streaming Style By-name Scanning API (#211406) 2026-07-31 08:54:13 -07:00
modules-minimize-extension.c
modules-minimize-module.c
modules-mmap-redef.c [clang][Modules] Diagnosing Module Redefinition Across ModuleMaps (#190085) 2026-04-08 14:22:07 -07:00
modules-module-map-order.m
modules-no-undeclared-includes.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-pch-common-stale.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-pch-common-submodule.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-pch-common-via-submodule.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-pch-compatibility.c [clang][deps] Only disable app extension without PCHs (#207049) 2026-07-01 12:57:12 -07:00
modules-pch-dangling.c
modules-pch-imports.c [LIT] Add -nostdinc so system headers aren't searched with implicit module maps (#192125) 2026-04-21 09:51:26 -04:00
modules-pch-signature-mismatch.c [Modules] Enrich diags for out of date module dependencies (#190203) 2026-04-10 13:53:10 -07:00
modules-pch.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-priv-fw-from-pub.m [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
modules-redefinition.m
modules-relocated-mm-macro.c cp -r replaces symlinks, update to cp -R (#201463) 2026-06-18 16:09:10 -07:00
modules-symlink-dir-from-module-incremental.c [Clang][Test] Mark modules-symlink-dir test as unsupported on AIX. (#184988) 2026-03-12 10:59:37 +05:30
modules-symlink-dir-from-module.c [clang][Modules] Handle relocated modules during implicit module builds (#181836) 2026-03-02 08:52:46 -08:00
modules-symlink-dir-vfs.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
modules-symlink-dir.c [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
modules-symlink.c
modules-transitive.c
modules.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
more-content-after-headerguard.c
multiple-commands.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
no-werror.cpp
optimize-canonicalize-macros.m [clang][Dependency Scanning] Canonicalize Defines of a Compiler Invocation As Early As Possible (#159620) 2025-09-18 15:42:14 -07:00
optimize-fmodulemap.m
optimize-system-warnings.m
optimize-vfs-edgecases.m
optimize-vfs-leak.m
optimize-vfs-pch.m [LIT] Add -nostdinc so system headers aren't searched with implicit module maps (#192125) 2026-04-21 09:51:26 -04:00
optimize-vfs.m
p1689-mf-nested-dir.c [clang-scan-deps] Fixes an assertion in clang-scan-deps (#193619) 2026-04-23 18:52:13 -07:00
p1689-suppress-warnings-no-eol.cppm [ClangScanDeps] Avoid use-of-uninitialized-memory for end-of-directive edge case (#188590) 2026-03-26 22:27:45 -07:00
p1689-suppress-warnings.cppm [Reland] [ClangScanDeps] Do not emit warning for P1689 format (#186966) (#188401) 2026-03-25 13:42:43 +08:00
P1689.cppm [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
pr61006.cppm [Clang] Rewrite tests using subshells to set env variables 2025-09-19 16:36:37 -07:00
prebuilt-modules-in-stable-dirs.c [clang][modules] Remove ModuleFile::File (#185995) 2026-03-26 10:44:08 -07:00
preprocess_minimized_pragmas.cpp
print-timing.c
prune-scanning-modules.m Revert "Invalidate tests using "touch -a" on Darwin (#192521)" (#192976) 2026-04-20 09:55:11 -04:00
raw-strings.cpp [clang][scandeps] Improve handling of rawstrings. (#139504) 2025-06-27 12:21:21 +02:00
regular_cdb.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
relative-filenames.c
relative_directory.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
removed-args.c
resolve-executable-path.c
resource_directory.c [Clang] Drop Shell Requirements (#165149) 2025-10-26 11:05:24 -07:00
response-file-clang-cl.c
response-file.c [clang][deps] Fix a use-after-free from expanding response files (#164676) 2025-10-22 12:48:31 -07:00
skipping-unmatched-if.c
static-analyzer.c
strip-codegen-args.m [clang] Unify -mspeculative-load-hardening as a benign compiler option (#166640) 2025-11-05 20:38:09 -08:00
strip-input-args.m
strip-llvm-args.m
strip-visibility.c
strip_diag_serialize.cpp
subframework_header_dir_symlink.m [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
submodule-order.c
symlink.cpp [clang] Remove shell requirements from tests 2025-09-11 17:51:47 -07:00
target-filename.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
tu-buffer.c [clang-scan-deps] Migrate more tests through scan-deps-filter (#207283) 2026-07-06 08:40:53 -07:00
verbose.test
vfsoverlay.cpp [clang][tests] Fix cross-build test failures on Darwin. (#181805) 2026-02-17 21:08:23 +00:00
visible-modules.c [clang][scan-deps] fix new test for readonly work trees 2025-07-14 10:09:11 -04:00
working-dir.m
working-directory-option.c
Wsystem-headers-in-module.c