[all-commits] [llvm/llvm-project] 820314: [clang][Dependency Scanning] Fix the Input File fo...

Qiongsi Wu via All-commits all-commits at lists.llvm.org
Tue Jun 23 08:17:17 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 820314fae19408e906ef8144573fca292b411613
      https://github.com/llvm/llvm-project/commit/820314fae19408e906ef8144573fca292b411613
  Author: Qiongsi Wu <qiongsiwu at gmail.com>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M clang/lib/Tooling/DependencyScanningTool.cpp
    M clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c

  Log Message:
  -----------
  [clang][Dependency Scanning] Fix the Input File for By-Name Lookup's Input CC1 Command Line (#205214)

When the command line is a CC1 command, the scanner does not append the
fake input file to the command line when initializing the compiler
instance. This PR fixes that by passing the compiler instance
initialization the correct modified command line. Without specifying the
fake input file, clang picks up `-` as its input.

An observable behavior is that the diagnostics are pointing to incorrect
files for cc1 commands, hence a test is added to check the diagnostics
messages contain the correct file name.



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