[analyzer] Add check for when block is called with too few arguments.
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 15 Nov 2016 18:40:46 +0000 (18:40 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 15 Nov 2016 18:40:46 +0000 (18:40 +0000)
commit8693adfd4669a9080d12ca42a4c9ab8661be6062
treea7bb525e0a4414955189c84de7d7b2849fd7af6f
parent34652925cbb0316c632975ae070649db5958a457
[analyzer] Add check for when block is called with too few arguments.

The CallAndMessageChecker has an existing check for when a function pointer
is called with too few arguments. Extend this logic to handle the block
case, as well. While we're at it, do a drive-by grammar correction
("less" --> "fewer") on the diagnostic text.

llvm-svn: 287001
clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
clang/test/Analysis/blocks.m
clang/test/Analysis/inline.c
clang/test/Analysis/inline.cpp
clang/test/Analysis/nullability.c