[all-commits] [llvm/llvm-project] 7f498d: [clang][DependencyScanning] Use CompilerInstanceWi...

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Tue Aug 4 12:38:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f498d9d36d102a653089e86cc07d0a7f90bfaec
      https://github.com/llvm/llvm-project/commit/7f498d9d36d102a653089e86cc07d0a7f90bfaec
  Author: Qiongsi Wu <qiongsiwu at gmail.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M clang/include/clang/DependencyScanning/DependencyScannerImpl.h
    M clang/lib/DependencyScanning/DependencyScannerImpl.cpp
    M clang/lib/DependencyScanning/DependencyScanningWorker.cpp
    M clang/test/ClangScanDeps/logging-simple.c
    M clang/unittests/Tooling/DependencyScannerTest.cpp

  Log Message:
  -----------
  [clang][DependencyScanning] Use CompilerInstanceWithContext for TU Scanning (#211408)

After `CompilerInstanceWithContext`'s relocation to
`DependencyScanningWorker.cpp`, we can use it freely as an
implementation engine for TU scanning. This PR does that, and unifies
the by-name scanning and TU scanning so they all go through
`CompilerInstanceWithContext`.

rdar://167034309



---

<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>


  Commit: 04722a4a32e6fec1897cc3cb5a54809fcd8c9cae
      https://github.com/llvm/llvm-project/commit/04722a4a32e6fec1897cc3cb5a54809fcd8c9cae
  Author: Qiongsi Wu <qiongsiwu at gmail.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M clang-tools-extra/clangd/ProjectModules.cpp
    R clang/include/clang/DependencyScanning/DependencyScannerImpl.h
    M clang/include/clang/DependencyScanning/DependencyScanningUtils.h
    M clang/include/clang/DependencyScanning/DependencyScanningWorker.h
    M clang/include/clang/Tooling/DependencyScanningTool.h
    M clang/lib/DependencyScanning/CMakeLists.txt
    R clang/lib/DependencyScanning/DependencyScannerImpl.cpp
    M clang/lib/DependencyScanning/DependencyScanningWorker.cpp
    M clang/lib/Tooling/DependencyScanningTool.cpp

  Log Message:
  -----------
  [clang][DependencyScanning] Dissolve DependencyScannerImpl.h/cpp (#211409)

`DependencyScannerImpl.h/cpp` were created to share code between TU
scanning and by-name scanning when they were on different code paths.
After unifying the implementation through `CompilerInstanceWithContext`,
we no longer need a separate header/cpp pair and all the code are moved
into `DependencyScanningWorker.cpp`. This PR is mechnical and does not
intend to introduce behavivor changes.

---

<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>


Compare: https://github.com/llvm/llvm-project/compare/70253af87096...04722a4a32e6

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