James Y Knight ab0116e2f0 [Clang] Improve error message for violations of -fmodules-decluse.
Now it reports the name of the indirectly-used module which is
missing.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D142925
2023-01-31 09:57:23 -05:00

8 lines
234 B
C

#ifndef H_H
#define H_H
#include "c.h"
#include "d.h" // expected-error {{module XH does not directly depend on a module exporting 'd.h', which is part of indirectly-used module XD}}
#include "h1.h"
const int h1 = aux_h*c*7*d;
#endif