Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
638ff7bb
Commit
638ff7bb
authored
Dec 17, 2015
by
Andrew Twyman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more documentation to constants for testing purposes.
parent
5d02d9f2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
0 deletions
+44
-0
test-suite/djinni/constants.djinni
test-suite/djinni/constants.djinni
+8
-0
test-suite/generated-src/cpp/constants.hpp
test-suite/generated-src/cpp/constants.hpp
+6
-0
test-suite/generated-src/cpp/constants_interface.hpp
test-suite/generated-src/cpp/constants_interface.hpp
+6
-0
test-suite/generated-src/java/com/dropbox/djinni/test/Constants.java
...generated-src/java/com/dropbox/djinni/test/Constants.java
+6
-0
test-suite/generated-src/java/com/dropbox/djinni/test/ConstantsInterface.java
...-src/java/com/dropbox/djinni/test/ConstantsInterface.java
+6
-0
test-suite/generated-src/objc/DBConstants.h
test-suite/generated-src/objc/DBConstants.h
+6
-0
test-suite/generated-src/objc/DBConstantsInterface.h
test-suite/generated-src/objc/DBConstantsInterface.h
+6
-0
No files found.
test-suite/djinni/constants.djinni
View file @
638ff7bb
...
...
@@ -20,9 +20,13 @@ constants = record {
const opt_bool_constant: optional<bool> = true;
const opt_i8_constant: optional<i8> = 1;
# opt_i16_constant has documentation.
const opt_i16_constant: optional<i16> = 2;
const opt_i32_constant: optional<i32> = 3;
const opt_i64_constant: optional<i64> = 4;
# opt_f32_constant has long documentation.
# (Second line of multi-line documentation.
# Indented third line of multi-line documentation.)
const opt_f32_constant: optional<f32> = 5.0;
const opt_f64_constant: optional<f64> = 5.0;
...
...
@@ -57,9 +61,13 @@ constants_interface = interface +c {
const opt_bool_constant: optional<bool> = true;
const opt_i8_constant: optional<i8> = 1;
# opt_i16_constant has documentation.
const opt_i16_constant: optional<i16> = 2;
const opt_i32_constant: optional<i32> = 3;
const opt_i64_constant: optional<i64> = 4;
# opt_f32_constant has long documentation.
# (Second line of multi-line documentation.
# Indented third line of multi-line documentation.)
const opt_f32_constant: optional<f32> = 5.0;
const opt_f64_constant: optional<f64> = 5.0;
...
...
test-suite/generated-src/cpp/constants.hpp
View file @
638ff7bb
...
...
@@ -38,12 +38,18 @@ struct Constants final {
static
std
::
experimental
::
optional
<
int8_t
>
const
OPT_I8_CONSTANT
;
/** opt_i16_constant has documentation. */
static
std
::
experimental
::
optional
<
int16_t
>
const
OPT_I16_CONSTANT
;
static
std
::
experimental
::
optional
<
int32_t
>
const
OPT_I32_CONSTANT
;
static
std
::
experimental
::
optional
<
int64_t
>
const
OPT_I64_CONSTANT
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
static
std
::
experimental
::
optional
<
float
>
const
OPT_F32_CONSTANT
;
static
std
::
experimental
::
optional
<
double
>
const
OPT_F64_CONSTANT
;
...
...
test-suite/generated-src/cpp/constants_interface.hpp
View file @
638ff7bb
...
...
@@ -40,12 +40,18 @@ public:
static
std
::
experimental
::
optional
<
int8_t
>
const
OPT_I8_CONSTANT
;
/** opt_i16_constant has documentation. */
static
std
::
experimental
::
optional
<
int16_t
>
const
OPT_I16_CONSTANT
;
static
std
::
experimental
::
optional
<
int32_t
>
const
OPT_I32_CONSTANT
;
static
std
::
experimental
::
optional
<
int64_t
>
const
OPT_I64_CONSTANT
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
static
std
::
experimental
::
optional
<
float
>
const
OPT_F32_CONSTANT
;
static
std
::
experimental
::
optional
<
double
>
const
OPT_F64_CONSTANT
;
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/Constants.java
View file @
638ff7bb
...
...
@@ -35,6 +35,7 @@ public final class Constants {
@CheckForNull
public
static
final
Byte
OPT_I8_CONSTANT
=
1
;
/** opt_i16_constant has documentation. */
@CheckForNull
public
static
final
Short
OPT_I16_CONSTANT
=
2
;
...
...
@@ -44,6 +45,11 @@ public final class Constants {
@CheckForNull
public
static
final
Long
OPT_I64_CONSTANT
=
4
l
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
@CheckForNull
public
static
final
Float
OPT_F32_CONSTANT
=
5.0f
;
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/ConstantsInterface.java
View file @
638ff7bb
...
...
@@ -35,6 +35,7 @@ public abstract class ConstantsInterface {
@CheckForNull
public
static
final
Byte
OPT_I8_CONSTANT
=
1
;
/** opt_i16_constant has documentation. */
@CheckForNull
public
static
final
Short
OPT_I16_CONSTANT
=
2
;
...
...
@@ -44,6 +45,11 @@ public abstract class ConstantsInterface {
@CheckForNull
public
static
final
Long
OPT_I64_CONSTANT
=
4
l
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
@CheckForNull
public
static
final
Float
OPT_F32_CONSTANT
=
5.0f
;
...
...
test-suite/generated-src/objc/DBConstants.h
View file @
638ff7bb
...
...
@@ -26,9 +26,15 @@ extern float const DBConstantsF32Constant;
extern
double
const
DBConstantsF64Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsOptBoolConstant
;
extern
NSNumber
*
__nullable
const
DBConstantsOptI8Constant
;
/** opt_i16_constant has documentation. */
extern
NSNumber
*
__nullable
const
DBConstantsOptI16Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsOptI32Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsOptI64Constant
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
extern
NSNumber
*
__nullable
const
DBConstantsOptF32Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsOptF64Constant
;
extern
NSString
*
__nonnull
const
DBConstantsStringConstant
;
...
...
test-suite/generated-src/objc/DBConstantsInterface.h
View file @
638ff7bb
...
...
@@ -19,9 +19,15 @@ extern float const DBConstantsInterfaceF32Constant;
extern
double
const
DBConstantsInterfaceF64Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptBoolConstant
;
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptI8Constant
;
/** opt_i16_constant has documentation. */
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptI16Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptI32Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptI64Constant
;
/**
* opt_f32_constant has long documentation.
* (Second line of multi-line documentation.
* Indented third line of multi-line documentation.)
*/
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptF32Constant
;
extern
NSNumber
*
__nullable
const
DBConstantsInterfaceOptF64Constant
;
extern
NSString
*
__nonnull
const
DBConstantsInterfaceStringConstant
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment