[all-commits] [llvm/llvm-project] 38372d: [clang][analyzer] Add SyntaxRunningTime per-entry-...

Arseniy Zaostrovnykh via All-commits all-commits at lists.llvm.org
Mon Oct 20 08:25:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38372df53fd7f6c8bd8c46bf720b676e12f481d9
      https://github.com/llvm/llvm-project/commit/38372df53fd7f6c8bd8c46bf720b676e12f481d9
  Author: Arseniy Zaostrovnykh <necto.ne at gmail.com>
  Date:   2025-10-20 (Mon, 20 Oct 2025)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h
    M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
    M clang/test/Analysis/analyzer-stats/entry-point-stats.cpp

  Log Message:
  -----------
  [clang][analyzer] Add SyntaxRunningTime per-entry-point metric (#163341)

Per-entry-point metrics are captured during the path-sensitive analysis
time. For that reason, it is not trivial to add the syntax-only analysis
time as it runs in a separate stage. Luckily syntax-only analysis is
done before path-senstivie analysis.

I use the function summary field to keep the syntax-only anlaysis time
once syntax analysis is done, and then forward it to the per-EP metrics
snapshot during the path-sensitive analysis.

Note that some of the entry points that were analyzed by syntax-only
rules may be missing in the CSV export if they were never analyzed by
path-sensitive rules. Conversely, if a function is analyzed with
path-sensitive analysis but not syntax-only analysis, its
`SyntaxRunningTime` will be empty.

--

CPP-7099



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