summaryrefslogtreecommitdiff
path: root/src/mongo/idl/unittest.idl
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2017-06-29 11:53:10 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2017-06-29 11:53:10 -0400
commit0966ba7c98dcd47d6fff753cf380d1c38c2c3d2b (patch)
tree548e4b3d45888789d1e0a75c9d04fc4aa7e512dc /src/mongo/idl/unittest.idl
parent103256372fc4f4cec1c736482c1ed520ee0de290 (diff)
downloadmongo-0966ba7c98dcd47d6fff753cf380d1c38c2c3d2b.tar.gz
SERVER-29634 Support overriding the C++ name for chained structs/types in IDL
Diffstat (limited to 'src/mongo/idl/unittest.idl')
-rw-r--r--src/mongo/idl/unittest.idl16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mongo/idl/unittest.idl b/src/mongo/idl/unittest.idl
index 439681f4435..b58bd804875 100644
--- a/src/mongo/idl/unittest.idl
+++ b/src/mongo/idl/unittest.idl
@@ -422,15 +422,15 @@ structs:
description: UnitTest for chained struct with only chained types
strict: false
chained_types:
- - ChainedType
- - AnotherChainedType
+ ChainedType : ChainedType
+ AnotherChainedType : AnotherChainedType
chained_struct_mixed:
description: Chained struct with chained structs and fields
strict: true
chained_structs:
- - chained_any_basic_type
- - chained_object_basic_type
+ chained_any_basic_type : chained_any_basic_type
+ chained_object_basic_type : ChainedObjectBasicType
fields:
field3: string
@@ -438,10 +438,12 @@ structs:
description: Chained struct with chained types, structs, and fields
strict: false
chained_types:
- - ChainedType
- - AnotherChainedType
+ ChainedType : chained_type
+ AnotherChainedType:
+ cpp_name: AnotherChainedType
chained_structs:
- - chained_string_basic_type
+ chained_string_basic_type:
+ cpp_name: ChainedStringBasicType
fields:
field3:
type: int