]> granicus.if.org Git - clang/commit
Correct the range returned by ParmVarDecl::getSourceRange(), for parameters in ObjC...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 17 Apr 2013 01:56:48 +0000 (01:56 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 17 Apr 2013 01:56:48 +0000 (01:56 +0000)
commit673c5d5e22b0af17bb9e903862f39e8a23d9e47f
tree2292d57adeab1f8dac0c99a55b5e03a6a5f26686
parentf2fee9aa3c2a69465e5ad20d3d0c368eb430562c
Correct the range returned by ParmVarDecl::getSourceRange(), for parameters in ObjC methods with postfix types.

For a parameter in a method like this:

-(int)methodWithFn:(void (*)(int *p))fn;

we would return the source range of the type and not include the parameter name.

Fixes rdar://13668626.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179660 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/Index/usrs.m