This revision was automatically updated to reflect the committed changes.
Closed by commit rG239c53b72b18: [analyzer] Track runtime types represented by
Obj-C Class objects (authored by vsavchenko).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
NoQ added a comment.
Perfect! Please get yourself some commit access already -__-
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78286/new/
https://reviews.llvm.org/D78286
___
cfe-commits mailing list
vsavchenko updated this revision to Diff 260580.
vsavchenko added a comment.
Move getSelfSVal from CallEvent to ProgramState
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78286/new/
https://reviews.llvm.org/D78286
Files:
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In this case, we should return the type of the enclosing
vsavchenko marked 2 inline comments as done.
vsavchenko added a comment.
> Let's land this, I guess? Fantastic work!
Thanks :-)
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if
NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.
Let's land this, I guess? Fantastic work!
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+
vsavchenko added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In this case, we should return the type of the
vsavchenko updated this revision to Diff 259314.
vsavchenko marked 9 inline comments as done.
vsavchenko added a comment.
Fix review remarks
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78286/new/
https://reviews.llvm.org/D78286
Files:
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In this case, we should return the type of the enclosing
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In this case, we should return the type of the enclosing
vsavchenko marked an inline comment as done.
vsavchenko added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:198
+ // 'self' variable of the current class method.
+ if (ReceiverSVal == Message.getSelfSVal()) {
+// In this case, we should return the type of the enclosing
vsavchenko marked 7 inline comments as done.
vsavchenko added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:113
+
+bool isObjCClassType(QualType Type) {
+ if (const auto *PointerType = dyn_cast(Type)) {
NoQ wrote:
>
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:113
+
+bool isObjCClassType(QualType Type) {
+ if (const auto *PointerType = dyn_cast(Type)) {
`static`?
Comment at:
vsavchenko added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:217-218
void DynamicTypePropagation::checkDeadSymbols(SymbolReaper ,
CheckerContext ) const {
ProgramStateRef State =
vsavchenko updated this revision to Diff 258065.
vsavchenko marked 8 inline comments as done.
vsavchenko added a comment.
Fix issues pointed by @NoQ.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78286/new/
https://reviews.llvm.org/D78286
Files:
vsavchenko marked 6 inline comments as done.
vsavchenko added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:135
+ if (MsgE->getReceiverKind() == ObjCMessageExpr::Class) {
+return {MsgE->getClassReceiver()->getAs(), true};
+ }
NoQ added inline comments.
Comment at: clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp:135
+ if (MsgE->getReceiverKind() == ObjCMessageExpr::Class) {
+return {MsgE->getClassReceiver()->getAs(), true};
+ }
Let's explain what `true` means here,
vsavchenko updated this revision to Diff 258003.
vsavchenko added a comment.
Fix unfinished comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78286/new/
https://reviews.llvm.org/D78286
Files:
vsavchenko created this revision.
vsavchenko added reviewers: NoQ, dcoughlin.
Herald added subscribers: cfe-commits, ASDenysPetrov, martong, Charusso,
dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet,
baloghadamsoftware, xazax.hun.
Herald added a project: clang.
Objective-C
20 matches
Mail list logo