commit | 78821ed2f17fbf7d0397cb21e1bb872aa06ea92a | [log] [tgz] |
---|---|---|
author | Timur Iskhakov <iskhakovt@google.com> | Sat Sep 09 23:40:13 2017 -0700 |
committer | Timur Iskhakov <iskhakovt@google.com> | Tue Sep 12 14:35:34 2017 -0700 |
tree | ddf92951f9c622c37d54c311af2e9848cd6ca6c2 | |
parent | 5dc72fe4f6f1d2c03c75307a9bd80f055f752ed3 [diff] |
C++ forward declaration restriction on incomplete types C++ doesn't support forward reference of an incomplete type: struct B; struct A { B foo; // error }; struct B {}; We could allow such references in HIDL by rearranging the defined types in topological order. Bug: 31827278 Test: mma Test: error test in follow up CL Change-Id: Idecd42d6e3a7b6c45a12e01d45eb29d949daf001
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0