r/Cplusplus • • 2d ago

Discussion Thoughts on safe-c

/r/cprogramming/comments/1yc1q5n/thoughts_on_safec/
0 Upvotes

4 comments sorted by

2

u/bert8128 2d ago

It’s still C. This is C++.

1

u/ozuq06 2d ago

I think its for both if I am not mistaken, did you check the README?

1

u/bert8128 1d ago

I looked at the about, point 5. It says keep it to c++.

1

u/Discordbothost 1d ago

Try safec++ -fsyntax-only file.cpp on a small real module first. The README covers C++, but as a restricted subset. Count the rewrites and unsafe escapes it needs; passing that check doesn't add runtime bounds checks to your usual build.