Re:C++ by Example
by mk89 on Thursday September 22, 2022 @04:15PM
(#32944049)
Yeah, I kind of envy that.
Although with Clang-tidy I sometimes see GSL warnings: https://clang.llvm.org/extra/clang-tidy/
which is pretty cool - I wonder how up-to-date that is compared to the GSL extension.
The more you invest in this kind of automated tools, the earlier you catch such bugs. Sure, sometimes it's "false positives, I know what I am doing", but you cut maybe a good > 90% of crap that comes from just writing old-style code.
Although with Clang-tidy I sometimes see GSL warnings: https://clang.llvm.org/extra/clang-tidy/ which is pretty cool - I wonder how up-to-date that is compared to the GSL extension.
The more you invest in this kind of automated tools, the earlier you catch such bugs. Sure, sometimes it's "false positives, I know what I am doing", but you cut maybe a good > 90% of crap that comes from just writing old-style code.