Page MenuHomePhabricator

[analyzer] StdLibraryFunctionsChecker: Add statistics
Needs ReviewPublic

Authored by martong on Apr 15 2020, 3:08 AM.

Diff Detail

Unit TestsFailed

140 mslldb-unit.Host/_/HostTests::Unknown Unit Message ("")
Note: Google Test filter = ConnectionFileDescriptorTest.TCPGetURIv6 [==========] Running 1 test from 1 test case. [----------] Global test environment set-up.

Event Timeline

martong created this revision.Apr 15 2020, 3:08 AM
balazske added inline comments.Apr 16 2020, 3:59 AM

This may be misleading: It is every call event that is encountered, even if not handled specially (because no summary). (I would not call a function "handled" if we do nothing with it beneath a check if it needs to be handled really.) Probably "found" is better.


The # of calls with summary or The # of handled calls with associated summary ?
Probably only for me but I had difficulty to understand what this means.


Change "argumentum" to "argument"?

steakhal marked an inline comment as done.Jul 14 2020, 4:00 AM

Besides @balazske's comments, looks good to me.


At first, it was strange to check NewState != State since the addTransition will do this check regardless.
Then I recognized the statistic increment.
It makes sense to count only the new state transitions.