diff options
author | Balazs Benics <benicsbalazs@gmail.com> | 2025-01-30 12:48:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-30 12:48:09 +0100 |
commit | 025541ddedd23e39d9394ea8a1e41a64dfbe4e94 (patch) | |
tree | 415ad17dd913469837028388464f71565df84dc0 /lldb/packages/Python/lldbsuite/test/gdbclientutils.py | |
parent | b68b4f64a2bd2e0a22375cf89a4d655fc3667e11 (diff) | |
download | llvm-025541ddedd23e39d9394ea8a1e41a64dfbe4e94.zip llvm-025541ddedd23e39d9394ea8a1e41a64dfbe4e94.tar.gz llvm-025541ddedd23e39d9394ea8a1e41a64dfbe4e94.tar.bz2 |
[analyzer] Relax assertion in BugReporterVisitors.cpp isInitializationOfVar (#125044)
If we see a variable declaration (aka. DeclStmt), and the VarRegion it
declared doesn't have Stack memspace, we assumed that it must be a local
static variable.
However, the declared variable may be an extern declaration of a global.
In this patch, let's admit that local extern declarations are a thing.
For the sake of completeness, I also added one more test for
thread_locals - which are implicitly considered statics btw. (the
`isStaticLocal()` correctly also considers thread locals as local
statics).
Fixes #124975
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py')
0 files changed, 0 insertions, 0 deletions