This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Update GCDAsyncSemaphoreChecker to match messages send to ObjC objects
ClosedPublic

Authored by george.karpenkov on Mar 6 2018, 11:03 AM.

Diff Detail

Event Timeline

NoQ added inline comments.Mar 6 2018, 11:08 AM
lib/StaticAnalyzer/Checkers/GCDAsyncSemaphoreChecker.cpp
127–130

forEachDescendant(anyOf(...)) sounds more correct to me. We should find both when both are present.

lib/StaticAnalyzer/Checkers/GCDAsyncSemaphoreChecker.cpp
127–130

...except it does not work. Type matchers types are weird like that.

NoQ added inline comments.Mar 6 2018, 11:39 AM
lib/StaticAnalyzer/Checkers/GCDAsyncSemaphoreChecker.cpp
127–130

Yeah, you might need to add some auxiliary stmt() thingies.

NoQ accepted this revision.Mar 6 2018, 6:51 PM

Yeah, looks good!

This revision is now accepted and ready to land.Mar 6 2018, 6:51 PM
This revision was automatically updated to reflect the committed changes.