[all-commits] [llvm/llvm-project] 345dd0: [C++20] [Modules] [ScanDeps] Scan results for modu...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Sep 7 02:04:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 345dd01072956b7ddc36dbdfe39df2d991193e07
      https://github.com/llvm/llvm-project/commit/345dd01072956b7ddc36dbdfe39df2d991193e07
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2026-09-07 (Mon, 07 Sep 2026)

  Changed paths:
    M clang/docs/ReleaseNotes.md
    M clang/docs/StandardCPlusPlusModules.md
    M clang/include/clang/DependencyScanning/ModuleDepCollector.h
    M clang/include/clang/Lex/PreprocessorOptions.h
    M clang/lib/DependencyScanning/ModuleDepCollector.cpp
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Tooling/DependencyScanningTool.cpp
    M clang/test/ClangScanDeps/P1689.cppm
    A clang/test/ClangScanDeps/p1689-module-map.cppm

  Log Message:
  -----------
  [C++20] [Modules] [ScanDeps] Scan results for module map file (#221652)

Previously we described the trick to use module map to import std module
implicitly. But in practice, this may not work as build tools can't get
the dependencies.

In this patch, we updated clang-scan-deps to report the dependencies
between consumers and the corresponding module described in module map
file in P1689 format. The P1689 format in clang-scan-deps is the defacto
dependency description between compiler and build tools. This helps end
users to use the trick without waiting for the support from various
build tools.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list