Is it possible to write a CLang plugin to warn on usage of RAW pointers?

146 Views Asked by At

Need to stop(or minimize) usage of raw C/C++ pointers in our source base (i.e. instead other options like references or smart pointers should be used).

Is it possible to write a CLang plugin to warn on use of Raw pointers (as local/global/member variables, as function return value, as function parameter) ? Or is this a definitely impossible thing ?

If it is possible, appreciate if you could provide some guidance/references.

0

There are 0 best solutions below