This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Keep #pragma push_macro, pop_macro and include_alias when minimizing source code.
ClosedPublic

Authored by saudi on Oct 19 2021, 11:27 AM.

Details

Summary

The #pragma directives push_macro/pop_macro and include_alias may influence the #include / import directives encountered by dependency scanning tools like clang-scan-deps.

This patch ensures that those directives are not removed during source code minimization.

Diff Detail

Event Timeline

saudi created this revision.Oct 19 2021, 11:27 AM
saudi requested review of this revision.Oct 19 2021, 11:27 AM
jansvoboda11 accepted this revision.Nov 1 2021, 1:30 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 1 2021, 1:30 AM