diff options
author | Balazs Benics <benicsbalazs@gmail.com> | 2025-10-03 16:32:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-03 16:32:52 +0200 |
commit | c75ae01233b0965d48e3770160119c162eb5c2ee (patch) | |
tree | 41b249828297755b00840fd683827e9a820adb78 /llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp | |
parent | cf86ef925d75ef08526fc399a2888673338298b3 (diff) | |
download | llvm-c75ae01233b0965d48e3770160119c162eb5c2ee.zip llvm-c75ae01233b0965d48e3770160119c162eb5c2ee.tar.gz llvm-c75ae01233b0965d48e3770160119c162eb5c2ee.tar.bz2 |
[analyzer] Fix -analyze-function debug warning to account for syntax checkers (#161664)
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.
Diffstat (limited to 'llvm/unittests/Analysis/FunctionPropertiesAnalysisTest.cpp')
0 files changed, 0 insertions, 0 deletions