[all-commits] [llvm/llvm-project] df128c: [clang][ssaf][NFC] Avoid incomplete EntitySummary ...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Mon Feb 23 14:26:27 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: df128ce63e8d7abce77ce0e1cd388ade0f21e501
      https://github.com/llvm/llvm-project/commit/df128ce63e8d7abce77ce0e1cd388ade0f21e501
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2026-02-23 (Mon, 23 Feb 2026)

  Changed paths:
    M clang/include/clang/Analysis/Scalable/EntityLinker/LUSummary.h

  Log Message:
  -----------
  [clang][ssaf][NFC] Avoid incomplete EntitySummary type breakage (#182946)

When parsing LUSummary.h as a standalone header unit, EntitySummary is
an incomplete type, causing compilation to fail:

```
__memory/unique_ptr.h:72:19: error: invalid application of 'sizeof' to an incomplete type 'clang::ssaf::EntitySummary'
   72 |     static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type");
...
clang/include/clang/Analysis/Scalable/EntityLinker/LUSummary.h:48:12: note: in instantiation of member function 'std::map<clang::ssaf::SummaryName, std::map<clang::ssaf::EntityId, std::unique_ptr<clang::ssaf::EntitySummary>>>::map' requested here
   48 |   explicit LUSummary(NestedBuildNamespace LUNamespace)
      |            ^
clang/include/clang/Analysis/Scalable/EntityLinker/LUSummary.h:27:7: note: forward declaration of 'clang::ssaf::EntitySummary'
   27 | class EntitySummary;
```

This is not a total breakage because this header file builds
successfully when used in a .cpp file that includes EntitySummary.h
prior to this.

See https://llvm.org/docs/CodingStandards.html#self-contained-headers



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