Add --show-leak-kinds=all valgrind flag.
dblume

dblume commited on 2022-06-29 21:31:26
Showing 1 changed files, with 4 additions and 2 deletions.

... ...
@@ -23,7 +23,8 @@ only need the `git ls-files` for `entr`, but I provide a bash command group with
23 23
 `find` here so I can easily copy and change it as needed.
24 24
 
25 25
     { git ls-files && find . -type f -regex '.*\.\(cfg\|local\)'; } | \
26
-    entr -c sh -c 'ctags -R *; make -j$(nproc) && valgrind -q --leak-check=yes product/testcode'
26
+    entr -c sh -c 'ctags -R *; make -j$(nproc) && \
27
+    valgrind -q --leak-check=yes --show-leak-kinds=all product/testcode'
27 28
 
28 29
 `find` could also have been `find . -type f \( -name \*.cfg -or -name \*.local \)`.
29 30
 
... ...
@@ -42,7 +43,8 @@ See [this QuickFix tip for sorting results by filename](http://git.dlma.com/dotf
42 43
 
43 44
 [This entr command is handy](https://twitter.com/dblume/status/1421011043489255424) when composing interview questions without a Makefile:
44 45
 
45
-    ls -1 *.h *.cpp | entr sh -c 'g++ -Wall -std=c++17 -pthread *.cpp && valgrind -q --leak-check=yes ./a.out'
46
+    ls -1 *.h *.cpp | entr sh -c 'g++ -Wall -std=c++17 -pthread *.cpp && \
47
+    valgrind -q --leak-check=yes --show-leak-kinds=all ./a.out'
46 48
 
47 49
 ### Visual Studio Code and WSL2
48 50
 
49 51