I didn't found a way to get a report like the one bellow using "clang-build make CC=/usr/share/clang/scan-build/ccc-analyzer".
Here we have another set of problems and anyone can install clang and run it.
tinycc-dad-git - scan-build resultsUser: address@hidden
Working Directory: /home/mingo/dev/tinycc-dad-git
Command Line: make CC=/usr/share/clang/scan-build/ccc-analyzer
Date: Fri Jan 18 19:57:11 2013
Bug SummaryBug Type Quantity Display?
All Bugs 31
API
Argument with 'nonnull' attribute passed null 1
Dead code
Idempotent operation 6
Dead store
Dead assignment 5
Logic error
Assigned value is garbage or undefined 2
Dereference of null pointer 14
Division by zero 1
Result of operation is garbage or undefined 2
ReportsBug Group Bug Type ▾ File Line Path Length
API Argument with 'nonnull' attribute passed null tcc.c 367 22 View Report Report Bug Open File
Logic error Assigned value is garbage or undefined tccgen.c 3347 11 View Report Report Bug Open File
Logic error Assigned value is garbage or undefined i386-asm.c 921 58 View Report Report Bug Open File
Dead store Dead assignment tccgen.c 157 1 View Report Report Bug Open File
Dead store Dead assignment i386-asm.c 1308 1 View Report Report Bug Open File
Dead store Dead assignment tccgen.c 1267 1 View Report Report Bug Open File
Dead store Dead assignment i386-asm.c 862 1 View Report Report Bug Open File
Dead store Dead assignment i386-gen.c 787 1 View Report Report Bug Open File
Logic error Dereference of null pointer tccpp.c 2764 34 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4667 27 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4851 36 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 3853 69 View Report Report Bug Open File
Logic error Dereference of null pointer tcc.c 429 22 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4810 8 View Report Report Bug Open File
Logic error Dereference of null pointer tccpp.c 2750 33 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 5833 57 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4834 7 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4540 15 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4643 26 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 5523 11 View Report Report Bug Open File
Logic error Dereference of null pointer tccgen.c 4547 17 View Report Report Bug Open File
Logic error Dereference of null pointer tccpp.c 3117 8 View Report Report Bug Open File
Logic error Division by zero tccasm.c 153 11 View Report Report Bug Open File
Dead code Idempotent operation i386-asm.c 507 5 View Report Report Bug Open File
Dead code Idempotent operation i386-asm.c 357 5 View Report Report Bug Open File
Dead code Idempotent operation i386-gen.c 626 1 View Report Report Bug Open File
Dead code Idempotent operation i386-asm.c 361 7 View Report Report Bug Open File
Dead code Idempotent operation i386-gen.c 695 4 View Report Report Bug Open File
Dead code Idempotent operation i386-asm.c 359 6 View Report Report Bug Open File
Logic error Result of operation is garbage or undefined i386-asm.c 877 57 View Report Report Bug Open File
Logic error Result of operation is garbage or undefined i386-asm.c 814 48 View Report Report Bug Open File