commit.replace(R, ClassString);
SourceLocation EndOfTypedefLoc = TypedefDcl->getLocEnd();
EndOfTypedefLoc = trans::findLocationAfterSemi(EndOfTypedefLoc, NS.getASTContext());
+ SourceLocation BeginOfTypedefLoc = TypedefDcl->getLocStart();
if (!EndOfTypedefLoc.isInvalid()) {
- commit.remove(SourceRange(TypedefDcl->getLocStart(), EndOfTypedefLoc));
+ // FIXME. This assumes that typedef decl; is immediately preceeded by eoln.
+ // It is trying to remove the typedef decl. line entirely.
+ BeginOfTypedefLoc = BeginOfTypedefLoc.getLocWithOffset(-1);
+ commit.remove(SourceRange(BeginOfTypedefLoc, EndOfTypedefLoc));
return true;
}
return false;
blarg
};
-
typedef NS_ENUM(NSUInteger, UITableViewCellStyle) {
UIViewAutoresizingNone = 0,
UIViewAutoresizingFlexibleLeftMargin,
UIViewAutoresizingFlexibleBottomMargin
};
-
typedef NS_ENUM(NSInteger, UIViewAnimationTransition) {
UIViewAnimationTransitionNone,
UIViewAnimationTransitionFlipFromLeft,
UIFour = 0x100
};
-
typedef NS_OPTIONS(NSUInteger, UIPOWER2) {
UIP2One = 0,
UIP2Two = 0x1,
UIKTwo = 2,
};
-
typedef NS_ENUM(NSInteger, NSTickMarkPosition) {
NSTickMarkBelow = 0,
NSTickMarkAbove = 1,
UIViewBottomMargin = 0xbadbeef
};
-
typedef NS_OPTIONS(NSUInteger, UIStyle) {
UIView0 = 0,
UIView1 = 0XBADBEEF
};
-
typedef NS_ENUM(NSUInteger, NSBitmapImageFileType) {
NSTIFFFileType,
NSBMPFileType,
NSJPEG2000FileType
};
-
typedef NS_ENUM(NSUInteger, NSAlertStyle) {
NSWarningAlertStyle = 0,
NSInformationalAlertStyle = 1,
NSCriticalAlertStyle = 2
};
-
enum {
D_NSTIFFFileType,
D_NSBMPFileType,
};
-
typedef NS_ENUM(NSInteger, UIP) {
UIP0One = 0,
UIP0Two = 1,