[cfe-dev] How to try out -Wlifetime ?

cen via cfe-dev cfe-dev at lists.llvm.org
Mon Nov 12 09:05:18 PST 2018


Hi

I watched Herb's talk on Cppcon so I decided to try out the new lifetime 
feature. I cloned llvm and clang master from github mirror and built 
both locally.

I tried to compile the first godbolt sample 
(https://godbolt.org/z/szJjnH) but no luck:

clang -Wlifetime -lstdc++ b.cpp
warning: unknown warning option '-Wlifetime'; did you mean 
'-Wdate-time'? [-Wunknown-warning-option]
1 warning generated.


What am I doing wrong?




More information about the cfe-dev mailing list