What is the purpose of the -Wlifetime
compile flag in clang
?
The information I found on the Internet about it are very vague. Is this any noticeable feature?
What is the purpose of the -Wlifetime
compile flag in clang
?
The information I found on the Internet about it are very vague. Is this any noticeable feature?
This flag analyzes the local file to see if the code may use pointers to objects that are dead. You can see Herb Sutter cppcon video on YouTube where he explains this very well: https://youtu.be/80BZxujhY38