summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m74
1 files changed, 74 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m
new file mode 100644
index 00000000..165ee244
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/oc/50514-indent_boxed.m
@@ -0,0 +1,74 @@
+
+- (IBAction) copy:(nullable id) inSender {
+ NSPasteboard* const pasteboard = NSPasteboard.generalPasteboard;
+ [pasteboard clearContents];
+ [pasteboard writeObjects:@[
+ [NSPasteboardItem pasteboardItemWithProvider:self forTypes:@[ NSPasteboardTypePDF ]
+ andData:@[ kNSUTIExportedAgaroseGel,
+ [NSKeyedArchiver archivedDataWithRootObject:self.selectedIndexes.count != 0 ?[self.gels objectsAtIndexes:self.selectedIndexes] : self.gels]
+ ]]
+ ]];
+}
+
+- (IBAction) copy:(nullable id) inSender {
+ NSPasteboard* const pasteboard = NSPasteboard.generalPasteboard;
+ [pasteboard clearContents];
+ [pasteboard writeObjects:@[[NSPasteboardItem pasteboardItemWithProvider:self forTypes:@[ NSPasteboardTypePDF ] andData:@[
+ kNSUTIExportedAgaroseGel, [NSKeyedArchiver archivedDataWithRootObject:self.selectedIndexes.count != 0 ?[self.gels objectsAtIndexes:self.selectedIndexes] : self.gels]
+ ]] ]];
+
+ NSArray* a = @[];
+ NSArray* b = @[@1,@2,@3];
+ NSArray* c = @[
+ @1, @2, @3
+ ];
+ NSArray* d = @[@[@1], @[@2], @[@3]];
+ NSArray* e = @[
+ @[@1], @[@2], @[@3]
+ ];
+ NSMutableArray* f = [NSMutableArray arrayWithArray:@[@[@1], @[@2], @[@3]]];
+ NSMutableArray* g = [NSMutableArray arrayWithArray:@[
+ @[@1], @[@2], @[@3]
+ ]];
+ NSMutableDictionary* d1 = [NSMutableDictionary dictionaryWithDictionary:@{
+ @"Keys":@[
+ @{@"A": @1},
+ @{@"B": @2}.
+ @{@"C": @3}
+ ]
+ }];
+}
+
+inline static void installGelMarkers(void) {
+ [NSOperationQueue.mainQueue addOperationWithBlock:^{
+ [accessoryView.textStorage setAttributedString:[[NSAttributedString alloc] initWithString:error.localizedDescription attributes:@{ NSFontAttributeName: [NSFont systemFontOfSize:NSFont.systemFontSize] }]];
+ NSAlert *alert = [[NSAlert alloc] init];
+ }];
+}
+
+[[NSAttributedString alloc] initWithString:inJunction.reverseName attributes:@{
+ NSFontAttributeName: font,
+ NSForegroundColorAttributeName: inJunction.reverseColor
+}];
+@{
+ NSFontAttributeName: self.font,
+ NSForegroundColorAttributeName: inJunction.forwardColor
+}
+[[NSAttributedString alloc] initWithString:inJunction.reverseName attributes:@{ NSFontAttributeName: font, NSForegroundColorAttributeName: inJunction.reverseColor }];
+[[NSAttributedString alloc] initWithString:inJunction.reverseName
+ attributes:@{ NSFontAttributeName: font, NSForegroundColorAttributeName: inJunction.reverseColor }];
+- (void) drawReversePrimerForJunction:(GibsonJunction*) inJunction bounds:(NSRect) inBounds {
+ NSString* const string1 = nil,
+ string2 = nil,
+ string3 = nil;
+//does not compile but does test shift operator formatting
+ std::ostringstream ostream;
+ ostream << "hello"
+ << ' '
+ << "world";
+ NSString* const string = inJunction.reversePrimer;
+ [attributedString appendAttributedString:[[NSAttributedString alloc] initWithString:[string substringToIndex:range.location] attributes:@{
+ NSFontAttributeName: self.font,
+ NSForegroundColorAttributeName: inJunction.forwardColor
+ }]];
+}