This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] StdLibraryFunctionsChecker: Add support for new functions
ClosedPublic

Authored by zukatsinadze on Aug 2 2020, 8:55 AM.

Details

Summary

toupper, tolower, toascii functions were added to
StdLibraryFunctionsChecker to fully cover CERT STR37-C rule:
https://wiki.sei.cmu.edu/confluence/x/BNcxBQ

Diff Detail

Event Timeline

zukatsinadze created this revision.Aug 2 2020, 8:55 AM
zukatsinadze requested review of this revision.Aug 2 2020, 8:56 AM
martong accepted this revision.Aug 12 2020, 6:17 AM

LGTM! Thanks for your work!

clang/test/Analysis/std-c-library-functions-arg-constraints.c
190

This formatting change seems unrelated, that would not be a problem in itself, but it degrades the readability a bit (for me).

This revision is now accepted and ready to land.Aug 12 2020, 6:17 AM