8000 Add note on `-Wlifetime` · ankuPRK/cppbestpractices@c58f76d · GitHub
[go: up one dir, main page]

Skip to content

Commit c58f76d

Browse files
authored
Add note on -Wlifetime
1 parent 12ec9d6 commit c58f76d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

02-Use_the_Tools_Available.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ You should use as many compilers as you can for your platform(s). Each compiler
116116
* `-Wuseless-cast` warn if you perform a cast to the same type
117117
* `-Wdouble-promotion` warn if `float` is implicit promoted to `double`
118118
* `-Wformat=2` warn on security issues around functions that format output (ie `printf`)
119+
* `-Wlifetime` (clang only currently) shows object lifetime issues
119120

120121
Consider using `-Weverything` and disabling the few warnings you need to on Clang
121122

0 commit comments

Comments
 (0)
0