[all-commits] [llvm/llvm-project] 9aecbd: [clang][DepScan] Allow ModuleDep to be const (#132...

Cyndy Ishida via All-commits all-commits at lists.llvm.org
Tue Mar 25 13:14:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9aecbdf8ed787a8edd1b7f97a1c7fbf6e9d12515
      https://github.com/llvm/llvm-project/commit/9aecbdf8ed787a8edd1b7f97a1c7fbf6e9d12515
  Author: Cyndy Ishida <cyndy_ishida at apple.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M clang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
    M clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp

  Log Message:
  -----------
  [clang][DepScan] Allow ModuleDep to be const (#132968)

This type can be exposed from C APIs, where instantiations of this type
are not expected to mutate after creation. To support this, mark the
lazy computation of build arguments mutable, as that is not intended to
otherwise mutate the state of these objects.


This was reviewed separately by @jansvoboda11



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