[all-commits] [llvm/llvm-project] 7a4dfa: [clang] Fix incorrect filenames for hardlinks (#18...

Keith Smiley via All-commits all-commits at lists.llvm.org
Tue Jun 23 12:09:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a4dfab07d1f76e5609be940213495060cecb078
      https://github.com/llvm/llvm-project/commit/7a4dfab07d1f76e5609be940213495060cecb078
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2026-06-23 (Tue, 23 Jun 2026)

  Changed paths:
    M clang/include/clang/Basic/SourceManager.h
    M clang/lib/Basic/SourceManager.cpp
    M clang/test/DebugInfo/Generic/macro.c
    A clang/test/Preprocessor/hardlink-include-names.c
    M clang/unittests/Basic/SourceManagerTest.cpp

  Log Message:
  -----------
  [clang] Fix incorrect filenames for hardlinks (#189475)

Previously hardlinked files would be discovered based on their inode,
leading to incorrect filepaths printed in some cases.

Fixes https://github.com/llvm/llvm-project/issues/26953
Fixes https://github.com/llvm/llvm-project/issues/58726

Related https://reviews.llvm.org/D137304

Assisted-by: codex



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