C++ Logo


Advanced search

Re: "logical name" of importable headers

From: Daniel Ruoso <daniel_at_[hidden]>
Date: Mon, 6 Jun 2022 16:15:01 -0400
Em seg., 6 de jun. de 2022 às 15:21, Gabriel Dos Reis
<gdr_at_[hidden]> escreveu:
> > Specifically, the input to the compiler would be a map from the token
> > used after include or import to the header file and the bmi for that
> > header unit.
> I think is what MSVC does... no?

I may have misunderstood. When the following argument is given:

  /headerUnit:angle foo.h=/some/foo.h.ifc

Does that mean MSVC will not perform a lookup in the include
directories and will just apply that for both `#include <foo.h>` and
`import <foo.h>`? Even if no there was no foo.h in any of the include

Is there ever a situation where the compiler would need the path to
the original header?


Received on 2022-06-06 20:15:13