logoalt Hacker News

jeffbee • today at 4:52 PM • 1 reply • view on HN

In my personal opinion, the fix[1] for that issue clearly implicates C-style habits polluting a C++ code base. No right-thinking knower of C++ initializes objects with memset! Also I believe that -Wall would have flagged that, and I know for certain that cppcoreguidelines-init-variables + cppcoreguidelines-pro-type-member-init would have flagged it.

1: https://github.com/llvm/llvm-project/commit/905a88b923433eb8...


Replies