GeezerVison is showing github.com — Updated formatting configuration for Uncrustify 0.63. · core-plot/core-plot@b4cc5ae
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: examples/DropPlot/CPTPlotDocument.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -156,7 +156,7 @@ -(BOOL)readFromData:(nonnull NSData *)data ofType:(NSString *)typeName error:(NS | 156 | 156 | NSString *fileContents = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]; | 157 | 157 |
| 158 | 158 | // Parse CSV | 159 | | - NSUInteger length = fileContents.length; | | 159 | + NSUInteger length = fileContents.length; | 160 | 160 | NSUInteger lineStart = 0, lineEnd = 0, contentsEnd = 0; | 161 | 161 | NSRange currentRange; | 162 | 162 |
| |
Collapse file Copy file name to clipboardExpand all lines: framework/Source/CPTBarPlot.m +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -656,8 +656,8 @@ -(double)doubleLengthInPlotCoordinates:(NSDecimal)decimalLength | 656 | 656 | double length; | 657 | 657 |
| 658 | 658 | if ( self.barWidthsAreInViewCoordinates ) { | 659 | | - CGFloat floatLength = CPTDecimalCGFloatValue(decimalLength); | 660 | | - CGPoint originViewPoint = CGPointZero; | | 659 | + CGFloat floatLength = CPTDecimalCGFloatValue(decimalLength); | | 660 | + CGPoint originViewPoint = CGPointZero; | 661 | 661 | CGPoint displacedViewPoint = CPTPointMake(floatLength, floatLength); | 662 | 662 | double originPlotPoint[2], displacedPlotPoint[2]; | 663 | 663 | CPTPlotSpace *thePlotSpace = self.plotSpace; | @@ -681,8 +681,8 @@ -(NSDecimal)lengthInPlotCoordinates:(NSDecimal)decimalLength | 681 | 681 | NSDecimal length; | 682 | 682 |
| 683 | 683 | if ( self.barWidthsAreInViewCoordinates ) { | 684 | | - CGFloat floatLength = CPTDecimalCGFloatValue(decimalLength); | 685 | | - CGPoint originViewPoint = CGPointZero; | | 684 | + CGFloat floatLength = CPTDecimalCGFloatValue(decimalLength); | | 685 | + CGPoint originViewPoint = CGPointZero; | 686 | 686 | CGPoint displacedViewPoint = CPTPointMake(floatLength, floatLength); | 687 | 687 | NSDecimal originPlotPoint[2], displacedPlotPoint[2]; | 688 | 688 | CPTPlotSpace *thePlotSpace = self.plotSpace; | |
Collapse file Copy file name to clipboardExpand all lines: framework/Source/CPTCalendarFormatter.m +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -189,7 +189,7 @@ -(nullable NSString *)stringForObjectValue:(nonnull id)coordinateValue | 189 | 189 | dateComponents.weekdayOrdinal = componentIncrement; | 190 | 190 | break; | 191 | 191 |
| 192 | | -#if MAC_OS_X_VERSION_10_5 < MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_3_0 < __IPHONE_OS_VERSION_MAX_ALLOWED | | 192 | +#if MAC_OS_X_VERSION_10_5<MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_3_0<__IPHONE_OS_VERSION_MAX_ALLOWED | 193 | 193 | case NSCalendarUnitQuarter: | 194 | 194 | if ( [dateComponents respondsToSelector:@selector(setQuarter:)] ) { | 195 | 195 | dateComponents.quarter = componentIncrement; | @@ -199,7 +199,7 @@ -(nullable NSString *)stringForObjectValue:(nonnull id)coordinateValue | 199 | 199 | } | 200 | 200 | break; | 201 | 201 | #endif | 202 | | -#if MAC_OS_X_VERSION_10_6 < MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 < __IPHONE_OS_VERSION_MAX_ALLOWED | | 202 | +#if MAC_OS_X_VERSION_10_6<MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0<__IPHONE_OS_VERSION_MAX_ALLOWED | 203 | 203 | case NSCalendarUnitWeekOfMonth: | 204 | 204 | if ( [dateComponents respondsToSelector:@selector(setWeekOfMonth:)] ) { | 205 | 205 | dateComponents.weekOfMonth = componentIncrement; | @@ -227,7 +227,7 @@ -(nullable NSString *)stringForObjectValue:(nonnull id)coordinateValue | 227 | 227 | } | 228 | 228 | break; | 229 | 229 | #endif | 230 | | -#if MAC_OS_X_VERSION_10_7 < MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 < __IPHONE_OS_VERSION_MAX_ALLOWED | | 230 | +#if MAC_OS_X_VERSION_10_7<MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0<__IPHONE_OS_VERSION_MAX_ALLOWED | 231 | 231 | case NSCalendarUnitCalendar: | 232 | 232 | [NSException raise:CPTException format:@"Unsupported calendar unit: NSCalendarCalendarUnit"]; | 233 | 233 | break; | @@ -236,7 +236,7 @@ -(nullable NSString *)stringForObjectValue:(nonnull id)coordinateValue | 236 | 236 | [NSException raise:CPTException format:@"Unsupported calendar unit: NSTimeZoneCalendarUnit"]; | 237 | 237 | break; | 238 | 238 | #endif | 239 | | -#if MAC_OS_X_VERSION_10_8 < MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0 < __IPHONE_OS_VERSION_MAX_ALLOWED | | 239 | +#if MAC_OS_X_VERSION_10_8<MAC_OS_X_VERSION_MAX_ALLOWED || __IPHONE_4_0<__IPHONE_OS_VERSION_MAX_ALLOWED | 240 | 240 | default: | 241 | 241 | [NSException raise:CPTException format:@"Unsupported calendar unit"]; | 242 | 242 | break; | |
Collapse file Copy file name to clipboardExpand all lines: framework/Source/CPTPlot.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1600,7 +1600,7 @@ -(void)relabel | 1600 | 1600 | BOOL plotProvidesLabels = dataLabelTextStyle && dataLabelFormatter; | 1601 | 1601 |
| 1602 | 1602 | BOOL hasCachedLabels = NO; | 1603 | | - NSMutableArray<CPTLayer *> *cachedLabels = (NSMutableArray<CPTLayer *> *)[self cachedArrayForKey: CPTPlotBindingDataLabels]; | | 1603 | + NSMutableArray<CPTLayer *> *cachedLabels = (NSMutableArray<CPTLayer *> *)[self cachedArrayForKey:CPTPlotBindingDataLabels]; | 1604 | 1604 | for ( CPTLayer *label in cachedLabels ) { | 1605 | 1605 | if ( ![label isKindOfClass:nullClass] ) { | 1606 | 1606 | hasCachedLabels = YES; | |
Collapse file Copy file name to clipboardExpand all lines: framework/iPhoneOnly/CPTTextStylePlatformSpecific.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ typedef NS_ENUM (NSInteger, CPTTextAlignment) { | 14 | 14 | // @cond | 15 | 15 | // for iOS SDK compatibility | 16 | 16 | #if TARGET_OS_SIMULATOR || TARGET_OS_IPHONE | 17 | | -#if __IPHONE_OS_VERSION_MAX_ALLOWED < 70000 | | 17 | +#if __IPHONE_OS_VERSION_MAX_ALLOWED<70000 | 18 | 18 | @interface NSString(CPTTextStylePlatformSpecificExtensions) | 19 | 19 |
| 20 | 20 | -(CGSize)sizeWithAttributes:(nonnull CPTDictionary *)attrs; | |
Collapse file Copy file name to clipboardExpand all lines: scripts/uncrustify.cfg +10-1Lines changed: 10 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Uncrustify 0.62 | | 1 | +# Uncrustify 0.63 | 2 | 2 | newlines = auto | 3 | 3 | input_tab_size = 4 | 4 | 4 | output_tab_size = 4 | @@ -292,6 +292,7 @@ align_pp_define_together = false | 292 | 292 | align_pp_define_gap = 1 | 293 | 293 | align_pp_define_span = 2 | 294 | 294 | align_left_shift = true | | 295 | +align_asm_colon = false | 295 | 296 | align_oc_msg_colon_span = 16 | 296 | 297 | align_oc_msg_colon_first = false | 297 | 298 | align_oc_decl_colon = true | @@ -405,6 +406,8 @@ nl_before_do = ignore | 405 | 406 | nl_after_do = ignore | 406 | 407 | nl_ds_struct_enum_cmt = false | 407 | 408 | nl_ds_struct_enum_close_brace = false | | 409 | +nl_before_func_class_def = 0 | | 410 | +nl_before_func_class_proto = 0 | 408 | 411 | nl_class_colon = remove | 409 | 412 | nl_constr_colon = ignore | 410 | 413 | nl_create_if_one_liner = true | @@ -427,6 +430,8 @@ ls_code_width = false | 427 | 430 | nl_max = 2 | 428 | 431 | nl_after_func_proto = 1 | 429 | 432 | nl_after_func_proto_group = 2 | | 433 | +nl_before_func_body_def = 0 | | 434 | +nl_before_func_body_proto = 0 | 430 | 435 | nl_after_func_body = 2 | 431 | 436 | nl_after_func_body_class = 0 | 432 | 437 | nl_after_func_body_one_liner = 1 | @@ -505,3 +510,7 @@ pp_region_indent_code = false | 505 | 510 | pp_indent_if = 0 | 506 | 511 | pp_if_indent_code = false | 507 | 512 | pp_define_at_level = false | | 513 | +use_indent_func_call_param = true | | 514 | +use_indent_continue_only_once = false | | 515 | +# option(s) with 'not default' value: 0 | | 516 | +# |
|