diff options
author | Michele Calgaro <[email protected]> | 2024-11-18 22:24:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-11-18 22:24:33 +0900 |
commit | 3b0c3b8206964b85bf3716c962d26dd15c4f285f (patch) | |
tree | 2f0973dbf96c2892d19a55b6f846f130e7399a48 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm | |
parent | ff287d2f48d4f4253bf84f19bd7fe937b61ede45 (diff) | |
download | extra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.tar.gz extra-dependencies-3b0c3b8206964b85bf3716c962d26dd15c4f285f.zip |
It is no longer necessary to maintain a customize trinity version.
Upstream version can be used as is.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm deleted file mode 100644 index 98522f3d..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/literals.mm +++ /dev/null @@ -1,44 +0,0 @@ - -NSDictionary *dictionary = @{@0: @"red", @1: @"green", @2: @"blue"}; - -NSArray *array = @[@0, @1, @2, @YES, @'Z', @42U]; - -NSArray *multilineArray = @[ -@0, @1, @2, @YES, -@'Z', @42U -]; - -void main(int argc, const char *argv[]) { - // character literals. - NSNumber *theLetterZ = @'Z'; // equivalent to [NSNumber numberWithChar:'Z'] - - // integral literals. - NSNumber *fortyTwo = @42; // equivalent to [NSNumber numberWithInt:42] - NSNumber *fortyTwoUnsigned = @42U; // equivalent to [NSNumber numberWithUnsignedInt:42U] - NSNumber *fortyTwoLong = @42L; // equivalent to [NSNumber numberWithLong:42L] - NSNumber *fortyTwoLongLong = @42LL; // equivalent to [NSNumber numberWithLongLong:42LL] - - // floating point literals. - NSNumber *piFloat = @3.141592654F; // equivalent to [NSNumber numberWithFloat:3.141592654F] - NSNumber *piDouble = @3.1415926535; // equivalent to [NSNumber numberWithDouble:3.1415926535] - - // BOOL literals. - NSNumber *yesNumber = @YES; // equivalent to [NSNumber numberWithBool:YES] - NSNumber *noNumber = @NO; // equivalent to [NSNumber numberWithBool:NO] - - // Raw string literals - NSString *rawString = [NSString stringWithFormat:@R"(embedded " quotes " )"]; - NSString *delimiterRawString = [NSString stringWithFormat:@R"<<<(embedded "quotes ')<<<"]; - NSString *groupIDString = [NSString stringWithFormat:@R"({"group_id " : " % @",})", groupID]; - NSString *config = @R"({"config_v1" : [ - {"op1" : {"type":{"unsupported1":{}}},"markers":[123]}, - {"op2" : {"type":{"jobs":{"suspend":true,"resume":false}}},"markers":[1]}, - {"op3" : {"type":{"Good Format":{}}},"markers":[123]} - ]})"; - - -#ifdef __cplusplus - NSNumber *trueNumber = @true; // equivalent to [NSNumber numberWithBool:(BOOL)true] - NSNumber *falseNumber = @false; // equivalent to [NSNumber numberWithBool:(BOOL)false] -#endif -} |