diff options
author | Devin Coughlin <dcoughlin@apple.com> | 2016-11-15 18:40:46 +0000 |
---|---|---|
committer | Devin Coughlin <dcoughlin@apple.com> | 2016-11-15 18:40:46 +0000 |
commit | 8693adfd4669a9080d12ca42a4c9ab8661be6062 (patch) | |
tree | a7bb525e0a4414955189c84de7d7b2849fd7af6f /clang/test/Analysis/inline.cpp | |
parent | 34652925cbb0316c632975ae070649db5958a457 (diff) | |
download | bcm5719-llvm-8693adfd4669a9080d12ca42a4c9ab8661be6062.tar.gz bcm5719-llvm-8693adfd4669a9080d12ca42a4c9ab8661be6062.zip |
[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
Diffstat (limited to 'clang/test/Analysis/inline.cpp')
-rw-r--r-- | clang/test/Analysis/inline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Analysis/inline.cpp b/clang/test/Analysis/inline.cpp index b7962b53a89..9fc4f81c05b 100644 --- a/clang/test/Analysis/inline.cpp +++ b/clang/test/Analysis/inline.cpp @@ -441,6 +441,6 @@ namespace rdar12409977 { namespace bug16307 { void one_argument(int a) { } void call_with_less() { - reinterpret_cast<void (*)()>(one_argument)(); // expected-warning{{Function taking 1 argument}} + reinterpret_cast<void (*)()>(one_argument)(); // expected-warning{{Function taking 1 argument is called with fewer (0)}} } } |