[cfe-dev] CLang. How to turn on reference to pointer errors

Andrey Sharoyko via cfe-dev cfe-dev at lists.llvm.org
Wed Feb 17 07:02:20 PST 2021


Hi.

In XCode I declare a function

void func (const Valu & val);

And when I mistakenly pass a pointer instead of a reference to an object, the compiler does not issue an error or warning message. But it generates incorrect code.
How do I enable this error or warning message?

Thanks,
Andrey.


More information about the cfe-dev mailing list