[all-commits] [llvm/llvm-project] c75ae0: [analyzer] Fix -analyze-function debug warning to ...
Balazs Benics via All-commits
all-commits at lists.llvm.org
Fri Oct 3 07:33:14 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c75ae01233b0965d48e3770160119c162eb5c2ee
https://github.com/llvm/llvm-project/commit/c75ae01233b0965d48e3770160119c162eb5c2ee
Author: Balazs Benics <benicsbalazs at gmail.com>
Date: 2025-10-03 (Fri, 03 Oct 2025)
Changed paths:
M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
M clang/test/Analysis/analyze-function-guide.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list