[clang] [LifetimeSafety] Trace assignment history for use-after-scope errors (PR #188467)

Yuan Suo via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 02:52:07 PDT 2026


suoyuan666 wrote:

CI log:

```txt
2026-03-31T09:43:43.4044673Z /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/Analysis/LifetimeSafety/AssignmentQuery.cpp:146:43: error: implicit instantiation of undefined template 'llvm::SmallPtrSet<const clang::CFGBlock *, 32>'
2026-03-31T09:43:43.4045979Z   146 |   llvm::SmallPtrSet<const CFGBlock *, 32> VistedBlocks;
2026-03-31T09:43:43.4046333Z       |                                           ^
2026-03-31T09:43:43.4047037Z /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include/clang/AST/ASTContext.h:55:41: note: template is declared here
2026-03-31T09:43:43.4047763Z    55 | template <typename T, unsigned N> class SmallPtrSet;
2026-03-31T09:43:43.4048092Z       |                                         ^
2026-03-31T09:43:43.4048350Z 1 error generated.
```

Sorry, it looks like I need to add `#include "llvm/ADT/SmallPtrSet.h"`

https://github.com/llvm/llvm-project/pull/188467


More information about the cfe-commits mailing list