[all-commits] [llvm/llvm-project] 90fdad: [clang][modules] Add warning for module maps with ...

Michael Spencer via All-commits all-commits at lists.llvm.org
Thu Mar 5 11:29:53 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90fdad2001b756b8c6fdef5262cb76a67fc6420c
      https://github.com/llvm/llvm-project/commit/90fdad2001b756b8c6fdef5262cb76a67fc6420c
  Author: Michael Spencer <bigcheesegs at gmail.com>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M clang-tools-extra/modularize/ModularizeUtilities.cpp
    M clang/docs/Modules.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/include/clang/Lex/HeaderSearch.h
    M clang/include/clang/Lex/ModuleMap.h
    M clang/include/clang/Lex/ModuleMapFile.h
    M clang/lib/Frontend/FrontendAction.cpp
    M clang/lib/Lex/HeaderSearch.cpp
    M clang/lib/Lex/ModuleMap.cpp
    M clang/lib/Lex/ModuleMapFile.cpp
    A clang/test/Modules/deprecated-upwards-relative-path.m
    M lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp

  Log Message:
  -----------
  [clang][modules] Add warning for module maps with ".." paths (#184279)

Implicitly discovered module maps that reference files outside their
module directory cause order dependent behavior when using implicitly
discovered module maps. This adds an off by default diagnostic about
these cases with the long term goal of removing import order dependent
behavior.

Module maps found via `-fmodule-map-file=` are not a problem because
they are all loaded at the start of translation.

Assisted-by: claude-opus-4.6



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