[all-commits] [llvm/llvm-project] c4b7e0: Call FileID::getOpaqueValue() instead of getHashVa...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Fri Sep 18 06:57:08 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4b7e08e60f5b0918795d246dc39ae834d492009
      https://github.com/llvm/llvm-project/commit/c4b7e08e60f5b0918795d246dc39ae834d492009
  Author: Akira Hatanaka <ahatanak at gmail.com>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M clang/include/clang/Basic/SourceLocation.h
    M clang/lib/Rewrite/HTMLRewrite.cpp
    M clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp

  Log Message:
  -----------
  Call FileID::getOpaqueValue() instead of getHashValue() for file identity (#224510)

The HTML diagnostics and rewriter code calls FileID::getHashValue() to
get a numeric identifier for each file.

#223794 changes getHashValue() so that it is no longer the identity
function, which breaks tests in clang/test/Analysis/html_diagnostics.

Call getOpaqueValue(), which is equivalent to the current implementation
of getHashValue(), from the HTML diagnostics/rewriter code instead. This
is a no-op today; it only matters once #223794 is reapplied.



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