|
|
|
|
|
by pistoleer
608 days ago
|
|
It's not well laid out. The examples are malformed/illegal and the ifdef thing is stupid. The author admits to not being a C undefined behavior expert and yet acts like they might know better than a tool made by such experts. Looking up the rules and verifying the shown snippets takes at most 30 minutes at a leisurely pace, the author could have saved themselves the embarrassment. I'm not going to write a blog post about how I didn't expect a color spectrometer pointed at the sky to say "BLUE" because I thought it might have been purple, "although I'm not an expert in wave lengths". |
|
At this stage, I would seriously doubt the credentials of anyone who claims to be a C undefined behaviour expert. Saying "I'm not a C UB expert" is just a realistic acknowledgement that UB is hard and we will get it wrong at some point without realising. The approach of having an automated tool tell you when UB is present is very sensible.