]> granicus.if.org Git - clang/commit
Fix documentation of numSelectorArgs.
authorManuel Klimek <klimek@google.com>
Tue, 8 Sep 2015 10:11:26 +0000 (10:11 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 8 Sep 2015 10:11:26 +0000 (10:11 +0000)
commit1b8011a878de0836a802c28150c5b21c7fe8eb2b
tree7ea6b8a418cb6afb6ac318982c09a0536d2d4852
parent7d83f25a86d1578de7140f8af65f917009dd1981
Fix documentation of numSelectorArgs.

Currently, the documentation for numSelectorArgs includes an incorrect
example. It shows a case where an argument of 1 will match a property
getter, but a getter will be matched only when N == 0.

This diff corrects the documentation and adds a test for numSelectorArgs(0).

Patch by Dave Lee.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246998 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTest.cpp