[all-commits] [llvm/llvm-project] 599630: [C++20][Modules][Driver][HU 3/N] Handle foo.h with...

iains via All-commits all-commits at lists.llvm.org
Sat Apr 23 01:51:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5996306c24badac0e04c1cead1aed4b106a3bdae
      https://github.com/llvm/llvm-project/commit/5996306c24badac0e04c1cead1aed4b106a3bdae
  Author: Iain Sandoe <iain at sandoe.co.uk>
  Date:   2022-04-23 (Sat, 23 Apr 2022)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/test/Driver/cxx20-header-units-02.cpp

  Log Message:
  -----------
  [C++20][Modules][Driver][HU 3/N] Handle foo.h with -fmodule-header and/or C++ invocation.

Allow an invocation like clang -fmodule-header bar.h (which will be a C++
compilation, but using a header which will be recognised as a C one).

Also  we do not want to produce:
 "treating 'c-header' input as 'c++-header' when in C++ mode"
diagnostics when the user has been specific about the intent.

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




More information about the All-commits mailing list