Skip to content
Commit a0772791 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

Correct the range returned by ParmVarDecl::getSourceRange(), for parameters in...

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.

llvm-svn: 179660
parent 406503a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment