The '-plugin-arg' command-line arguments are not being generated in deterministic order.
This patch changes the storage from std::unordered_map to std::map to enforce ordering.
Differential D99879
[clang][cli] Ensure plugin args are generated in deterministic order jansvoboda11 on Apr 5 2021, 3:18 AM. Authored by
Details The '-plugin-arg' command-line arguments are not being generated in deterministic order. This patch changes the storage from std::unordered_map to std::map to enforce ordering.
Diff Detail
Event TimelineComment Actions LGTM. Based on git-blame, this was added in 6c78974b298d619ec11e243fb6fdea0b16f87a66 (https://reviews.llvm.org/D17959) and the choice of unordered vs. ordered looks incidental (not motivated by performance). |