mirror of
https://github.com/clang-retro/llvm.git
synced 2026-12-05 00:29:35 -08:00
Introduce 'InvalidatingGetEnv' checker option for 'getenv' calls. - POSIX suggests consecutive 'getenv' calls may invalidate pointer pointers. This is often too strict in real-world scenarios. - New 'InvalidatingGetEnv' checker option provides a more pragmatic default that doesn't treat consecutive 'getenv' calls as invalidating. - Now also handles main function specifications with an environment pointer as the third parameter. Original Phabricator review: https://reviews.llvm.org/D154603