diff options
author | Michele Calgaro <[email protected]> | 2023-11-18 17:53:35 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-11-19 19:27:29 +0900 |
commit | c0a6f1b84c84749908961579b84513fd9f9d9eac (patch) | |
tree | ace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/indent_boxed.m | |
parent | 52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff) | |
download | extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip |
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/indent_boxed.m')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/indent_boxed.m | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/indent_boxed.m b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/indent_boxed.m new file mode 100644 index 00000000..c7df968f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/oc/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 +}]]; +} |