summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-18 17:53:35 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-19 19:27:29 +0900
commitc0a6f1b84c84749908961579b84513fd9f9d9eac (patch)
treeace7ba60cb031acd3a1f4ff10f7bbc5668fa801f /debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm
parent52e5ffe140f0f4402e97936447bc9a606045d2b5 (diff)
downloadextra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.tar.gz
extra-dependencies-c0a6f1b84c84749908961579b84513fd9f9d9eac.zip
uncrustify-trinity: updated based on upstream version 0.78.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm')
-rw-r--r--debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm44
1 files changed, 0 insertions, 44 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/oc/literals.mm
deleted file mode 100644
index 98522f3d..00000000
--- a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/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
-}