[all-commits] [llvm/llvm-project] fe3d6b: [NFC] [clangd] [C++20] [Modules] Fix false duplica...

Li-Zheng-Rong via All-commits all-commits at lists.llvm.org
Mon May 25 23:05:39 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe3d6b051b31f5794cd29818acb9203dbb7dd6f4
      https://github.com/llvm/llvm-project/commit/fe3d6b051b31f5794cd29818acb9203dbb7dd6f4
  Author: Li-Zheng-Rong <2508120225 at hhu.edu.cn>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M clang-tools-extra/clangd/ProjectModules.cpp

  Log Message:
  -----------
  [NFC] [clangd] [C++20] [Modules] Fix false duplicate module warning for equivalent paths (#199343)

When checking for multiple source files declaring the same module, the
comparison used raw string equality on file paths. This causes false
positives when the same file is represented by different but equivalent
path strings.

Use pathEqual(normalizePath(...), normalizePath(...)) instead to compare
canonical paths, consistent with how clangd handles path comparisons
elsewhere.



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