|
| 1 | +NORMAL#CodeChecker log --output $LOGFILE$ --build "make all_checkers_off_except_return_stack_address" --quiet |
| 2 | +NORMAL#CodeChecker analyze $LOGFILE$ --analyzers clang-tidy -d default -e clang-diagnostic-return-stack-address --output $OUTPUT$ |
| 3 | +NORMAL#CodeChecker parse $OUTPUT$ |
| 4 | +CHECK#CodeChecker check --build "make all_checkers_off_except_return_stack_address" --output $OUTPUT$ --quiet --analyzers clang-tidy -d default -e clang-diagnostic-return-stack-address |
| 5 | +-------------------------------------------------------------------------------- |
| 6 | +[] - Starting build... |
| 7 | +[] - Using CodeChecker ld-logger. |
| 8 | +[] - Build finished successfully. |
| 9 | +[] - Starting static analysis ... |
| 10 | +[] - [1/1] clang-tidy analyzed all_checkers_off_except_return_stack_address.c successfully. |
| 11 | +[] - ----==== Summary ====---- |
| 12 | +[] - Successfully analyzed |
| 13 | +[] - clang-tidy: 1 |
| 14 | +[] - Total analyzed compilation commands: 1 |
| 15 | +[] - ----=================---- |
| 16 | +[] - Analysis finished. |
| 17 | +[] - To view results in the terminal use the "CodeChecker parse" command. |
| 18 | +[] - To store results use the "CodeChecker store" command. |
| 19 | +[] - See --help and the user guide for further options about parsing and storing the reports. |
| 20 | +[] - ----=================---- |
| 21 | +[MEDIUM] all_checkers_off_except_return_stack_address.c:7:11: address of stack memory associated with local variable 'a' returned [clang-diagnostic-return-stack-address] |
| 22 | + return &a; |
| 23 | + ^ |
| 24 | + |
| 25 | +Found 1 defect(s) in all_checkers_off_except_return_stack_address.c |
| 26 | + |
| 27 | + |
| 28 | +----==== Severity Statistics ====---- |
| 29 | +---------------------------- |
| 30 | +Severity | Number of reports |
| 31 | +---------------------------- |
| 32 | +MEDIUM | 1 |
| 33 | +---------------------------- |
| 34 | +----=================---- |
| 35 | + |
| 36 | +----==== Checker Statistics ====---- |
| 37 | +-------------------------------------------------------------------- |
| 38 | +Checker name | Severity | Number of reports |
| 39 | +-------------------------------------------------------------------- |
| 40 | +clang-diagnostic-return-stack-address | MEDIUM | 1 |
| 41 | +-------------------------------------------------------------------- |
| 42 | +----=================---- |
| 43 | + |
| 44 | +----==== File Statistics ====---- |
| 45 | +------------------------------------------------------------------ |
| 46 | +File name | Number of reports |
| 47 | +------------------------------------------------------------------ |
| 48 | +all_checkers_off_except_return_stack_address.c | 1 |
| 49 | +------------------------------------------------------------------ |
| 50 | +----=================---- |
| 51 | + |
| 52 | +----======== Summary ========---- |
| 53 | +--------------------------------------------- |
| 54 | +Number of processed analyzer result files | 1 |
| 55 | +Number of analyzer reports | 1 |
| 56 | +--------------------------------------------- |
| 57 | +----=================---- |
0 commit comments