Commit ea99b06
committed
[analyzer] Fix -analyze-function debug warning to account for syntax checkers
Previously, when using -analyze-function to target a specific function,
the analyzer would incorrectly report "Every top-level function was skipped"
even when the function was successfully analyzed by syntax-only checkers.
This happened because NumFunctionsAnalyzed only counted path-sensitive analysis,
not syntax-only analysis. The misuse detection logic would see 0 functions
analyzed and incorrectly conclude the function wasn't found.1 parent e48fe76 commit ea99b06
File tree
2 files changed
+18
-11
lines changed- clang
- lib/StaticAnalyzer/Frontend
- test/Analysis
2 files changed
+18
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
588 | 591 | | |
589 | 592 | | |
590 | 593 | | |
591 | | - | |
592 | | - | |
593 | | - | |
| 594 | + | |
| 595 | + | |
594 | 596 | | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments