Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h | ||
---|---|---|
85 | What prevents you from obtaining the type from D? I guess NamedDecl itself doesn't provide a getType() on its own but what specific sub-classes can D be that don't have a type? |
clang/include/clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h | ||
---|---|---|
85 | Because it's not a declaration of pointer-to-member, but a declaration of the actual member. It can be nullptr while the type is always known. |
I think, we could commit this and set Valery as the author (he is no longer working on CSA).
Unless you find something wrong with the patch; in that case we can still make changes after we commandeer the patch.
What prevents you from obtaining the type from D? I guess NamedDecl itself doesn't provide a getType() on its own but what specific sub-classes can D be that don't have a type?