[cfe-commits] r157646 - in /cfe/trunk: lib/Parse/ParseObjc.cpp test/FixIt/fixit-interface-as-param.m
Fariborz Jahanian
fjahanian at apple.com
Tue May 29 14:52:45 PDT 2012
Author: fjahanian
Date: Tue May 29 16:52:45 2012
New Revision: 157646
URL: http://llvm.org/viewvc/llvm-project?rev=157646&view=rev
Log:
objc: position of 'fixit' was off by one.
This patch fixes it. // rdar://11488351
Modified:
cfe/trunk/lib/Parse/ParseObjc.cpp
cfe/trunk/test/FixIt/fixit-interface-as-param.m
Modified: cfe/trunk/lib/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseObjc.cpp?rev=157646&r1=157645&r2=157646&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseObjc.cpp (original)
+++ cfe/trunk/lib/Parse/ParseObjc.cpp Tue May 29 16:52:45 2012
@@ -894,7 +894,7 @@
DeclSpec declSpec(AttrFactory);
declSpec.setObjCQualifiers(&DS);
ParseSpecifierQualifierList(declSpec);
- declSpec.SetRangeEnd(Tok.getLocation().getLocWithOffset(-1));
+ declSpec.SetRangeEnd(Tok.getLocation());
Declarator declarator(declSpec, context);
ParseDeclarator(declarator);
Modified: cfe/trunk/test/FixIt/fixit-interface-as-param.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit-interface-as-param.m?rev=157646&r1=157645&r2=157646&view=diff
==============================================================================
--- cfe/trunk/test/FixIt/fixit-interface-as-param.m (original)
+++ cfe/trunk/test/FixIt/fixit-interface-as-param.m Tue May 29 16:52:45 2012
@@ -7,5 +7,5 @@
- (void) drawRect : inView:(NSView)view;
@end
-// CHECK: {7:34-7:34}:"*"
+// CHECK: {7:35-7:35}:"*"
More information about the cfe-commits
mailing list