rdar://76948312
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thx a lot for the fix!
clang/lib/StaticAnalyzer/Core/CallEvent.cpp | ||
---|---|---|
482–483 | Maybe at least processParameter? | |
496–497 | I think this check could be implemented more reliably on the AST. I.e., ask what's the type of the argument expression instead. It's typically better to query the AST types instead of SVal types because AST types are richer (cf. lvalue/rvalue confusion from D104550#inline-993348 - which is a very common source of bugs) and also significantly less likely to be buggy / improperly modeled. So i'm very much in favor of knowing in advance which type do we expect according to the AST and then later asserting that we got something compatible from the SVal. | |
clang/test/Analysis/transparent_union_bug.c | ||
5 | Unused :P |
clang-tidy: error: no member named 'getType' in 'clang::ento::SVal' [clang-diagnostic-error]
not useful