[all-commits] [llvm/llvm-project] 2e1ec4: [clang] NFCI: Split `HeaderSearch::findAllModulesF...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Thu Jun 1 10:12:23 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e1ec4c737f93925e29e4037e758b940c6fef448
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2023-06-01 (Thu, 01 Jun 2023)

  Changed paths:
    M clang/include/clang/Lex/HeaderSearch.h
    M clang/include/clang/Lex/ModuleMap.h
    M clang/lib/Lex/HeaderSearch.cpp
    M clang/lib/Lex/ModuleMap.cpp
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  [clang] NFCI: Split `HeaderSearch::findAllModulesForHeader()`

This mimics the `ModuleMap` API and enables D151854, where the `AllowCreation = true` function needs `FileEntryRef` but `AllowCreation = false` functions is happy with plain `FileEntry`. No functional change intended.

Reviewed By: benlangmuir

Differential Revision: https://reviews.llvm.org/D151853

More information about the All-commits mailing list