[PATCH] D93224: [RFC][analyzer] Use the MacroExpansionContext for macro expansions in plists

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 08:42:53 PST 2021


martong added a comment.

In D93224#2497632 <https://reviews.llvm.org/D93224#2497632>, @steakhal wrote:

> It seems quite a challenge to hook the `Preprocessor` for all possible configurations for every `CompilerInvocation`.
> The underlying machinery is somewhat complex and spaghetti to me.
>
> Here is what I suggest:
> For now, this expansion is better than the previous was. Macro expansions will work for the main TU even in any CTU configuration. For the imported TUs, it will just not expand any macros.
> This is a regression in some way, but we should live with that until we implement it completely.
> I think the users would prefer a non-crashing partial implementation to a crashing one.
>
> If you think it's an appropriate, I will update the CTU tests to expect no macro expansion in any imported TU.
> And also remove the `XFAIL`.
> This way we could still target clang-12.
>
> Do you think it's acceptable?
> @xazax.hun @NoQ

Sounds good to me!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93224/new/

https://reviews.llvm.org/D93224



More information about the cfe-commits mailing list