[cfe-dev] Question about ASTReader::resolvePendingMacro, namely SkipDirectiveHistory
cfe-dev at lists.llvm.org
Wed Nov 27 10:09:55 PST 2019
I'm just checking a ASTReader::resolvePendingMacro, and looking at lines:
// Don't read the directive history for a module; we don't have anywhere
// to put it.
So there is a question, first why it is called DirectiveHistory? Why just not a directive?
Another thing is why we should skip it? I mean, we can store it in ASTReader::PP, and later if we're compiling another module we skip it, for it doesn't belong to current file right?
Or from another side, can't we just define something in one module and take it into account in another (dependent) one?
More information about the cfe-dev