On Thu, Nov 06, 2014 at 01:36:05PM -0800, Chris Peterson wrote: > On 11/6/14 10:22 AM, Jason Orendorff wrote: > >I guess I was a little irked that people are still tripping over this > >ancient document (didn't we delete that?), because I just took the time > >to clobber most of it and update what was left. > > > >https://developer.mozilla.org/en-US/docs/Mozilla/Cpp_portability_guide > > Regarding "Don't use static constructors", clang has an optional > -Wglobal-constructors warning for global and static C++ objects. Firefox has > 539 instances.
Last time I looked we had only a hundred static ctors or so. Global objects with ctors are fine if the class has a trivial dtor, andthe constructor is marked as constexpr (at least roughly). Trev > > An unofficial list of clang's (mysteriously undocumented) warnings: > > http://fuckingclangwarnings.com/ > > chris > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform
signature.asc
Description: Digital signature
_______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform