llvm / llvm/llvm-project

Check whether `ProgramPoint`s are useful without `LocationContext` / `StackFrame`

Open
#200,162 5 comments 0 reactions 0 assignees View on GitHub
clang:static analyzer
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The type `ProgramPoint` is (AFAIK) only used by the clang static analyzer, where it corresponds to a concrete `LocationContext` [1], but there is a comment in `ProgramPoint.h` which claims that

```c++
// The StackFrame could be NULL to allow ProgramPoint to be used in
// context insensitive analysis.
```

@tigbr As we discussed in person and on [a review comment](https://github.com/llvm/llvm-project/pull/198211#discussion_r3305510757), please determine whether this comment is obsolete, and if it is obsolete, then remove/replace it.

--------

[1] The class `LocationContext` is being renamed to `StackFrame` right now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.