[all-commits] [llvm/llvm-project] 954d77: [clang][deps] Ensure reported context hash is strict

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Oct 21 04:50:01 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 954d77b98dd69c6bcf808e3dac871171d4832bad
      https://github.com/llvm/llvm-project/commit/954d77b98dd69c6bcf808e3dac871171d4832bad
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-10-21 (Thu, 21 Oct 2021)

  Changed paths:
    M clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/a/dep.h
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/b/dep.h
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/cdb.json.template
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/mod.h
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/module.modulemap
    A clang/test/ClangScanDeps/Inputs/modules-context-hash/tu.c
    A clang/test/ClangScanDeps/modules-context-hash.c

  Log Message:
  -----------
  [clang][deps] Ensure reported context hash is strict

One of main goals of the dependency scanner is to be strict about module compatibility. This is achieved through strict context hash. This patch ensures that strict context hash is enabled not only during the scan itself (and its minimized implicit build), but also when actually reporting the dependency.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D111720




More information about the All-commits mailing list