GCC has a &#x27;-Weffc++&#x27; option, which claims to do roughly what you want. Although, it&#x27;s no doubt using obsolete guidelines these days, since it aims to match Scott Meyers&#x27; guidelines from his book. (Yep, same Scott Meyers that wrote this blog post.)