[all-commits] [llvm/llvm-project] 3693a9: [SSAF][PointerFlow] Properly declare functions in ...

Bruno De Fraine via All-commits all-commits at lists.llvm.org
Wed Sep 16 06:22:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3693a9b748c55b94994ff8ad6f48deffb1c90d40
      https://github.com/llvm/llvm-project/commit/3693a9b748c55b94994ff8ad6f48deffb1c90d40
  Author: Bruno De Fraine <bruno.defraine at globalfoundries.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M clang/include/clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlow.h
    M clang/include/clang/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage/UnsafeBufferUsage.h
    M clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowExtractor.cpp
    M clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowFormat.cpp
    M clang/lib/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage/UnsafeBufferUsageFormat.cpp
    M clang/unittests/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlowWPATest.cpp
    M clang/unittests/ScalableStaticAnalysis/Analyses/UnsafeBufferUsage/UnsafeBufferUsageWPATest.cpp
    M clang/unittests/ScalableStaticAnalysis/WholeProgramAnalysis/UnsafeBufferReachableAnalysisTest.cpp

  Log Message:
  -----------
  [SSAF][PointerFlow] Properly declare functions in header (#223390)

In a GCC build, this fixes some warnings of the following kind:

    clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlow.cpp:15:1: warning: ‘clang::ssaf::PointerFlowEntitySummary clang::ssaf::buildPointerFlowEntitySummary(EdgeSet)’ has not been declared within ‘clang::ssaf’
       15 | ssaf::buildPointerFlowEntitySummary(EdgeSet Edges) {
          | ^~~~
    In file included from clang/lib/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlow.cpp:9:
    clang/ScalableStaticAnalysis/Analyses/PointerFlow/PointerFlow.h:29:35: note: only here as a ‘friend’
       29 |   friend PointerFlowEntitySummary buildPointerFlowEntitySummary(EdgeSet Edges);
          |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixed by centralizing the function declarations in the header, which
also removes the duplication across multiple files/tests.



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