HerrCai0907 wrote: > If the added option to to discourage writing such code, then there should not > be not option at all and no warning for such cases but a separate check that > warns about the pattern.
In theory true, but since c++ STL and Microsoft system header have conflict in `min` / `max`. we need to pay for them anyway. I prefer to keep this option as it for this more common scenario. Maybe another option which is false by default to prevent this rare scenario at least in my eyes. https://github.com/llvm/llvm-project/pull/164827 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
