It's a potential problem for modules (and headers in general) if '#include' directives occur inside 'extern "C/C++" {}' or 'namespace (name) {}' blocks, because that can produce different underlying definitions if other sources include the header outside of such blocks. This patch to modularize checks for these cases, treating them as errors, and produces error message referencing both the offending '#include' and the enclosing 'extern "C/C++" {}' or 'namespace (name) {}' block.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Committed in r190950.
modularize/PreprocessorTracker.cpp | ||
---|---|---|
934 | Fixed typo "with" => "within" |
Fixed typo "with" => "within"