[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 25 10:46:34 PDT 2025
hubert-reinterpretcast wrote:
> > Why is that hard to believe?
>
> Because there's no need to mix a completely new directive with fundamentally different instructions (and parsing) on the same line. All the complexity required to support this (much less the mental stumbling blocks for readers of the code) stand in contrast to the trivial alternative of "add a newline". The putative burden of doing so doesn't even come close to justifying the resulting complexity -- it's entirely self-defeating of the standard to allow this IMO.
I believe I have explained why this was not standardized as a "new directive" from a design viewpoint. The directives were more a means to an end.
https://github.com/llvm/llvm-project/pull/107168
More information about the cfe-commits
mailing list