[all-commits] [llvm/llvm-project] a08b09: [clang][analyzer] Record entry-point CFG size in p...

Arseniy Zaostrovnykh via All-commits all-commits at lists.llvm.org
Fri Oct 17 01:08:59 PDT 2025


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

  Changed paths:
    M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
    M clang/test/Analysis/analyzer-stats/entry-point-stats.cpp

  Log Message:
  -----------
  [clang][analyzer] Record entry-point CFG size in per-entry-point metrics (#163351)

MaxCFGSize does not make sense in the context of per-entry-point metric.
Moreover, it gets polluted by the syntax-only checks that run before
path-sensitive analysis: the first entry point analized by
path-sensitive analysis will have MaxCFGSize set to the max CFG across
all syntax-only-analyzed entry points, which has little meaning.

This change unbundles the per-TU statistic MaxCFGSize and per-EP
statistic CFGSize.

--

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