Remove unnecessary TODO from ConstantExpression.h

We intend to have the method isValidEnumStorageType virtual
and attached to every method. This makes EnumType not have
to care about what underlying scalar type it is.

Further, making bool allowed as an enum storage type doesn't
add much value.

Test: none
Bug: 64358435
Change-Id: Ibdcffbafb380d9cfc50b7c1dbb9abb72f11c4293
1 file changed
tree: 1c3c1e53267d7bcfbd20035827c8db38915c25c0
  1. c2hal/
  2. include_hash/
  3. test/
  4. utils/
  5. .clang-format
  6. Android.bp
  7. Annotation.cpp
  8. Annotation.h
  9. ArrayType.cpp
  10. ArrayType.h
  11. AST.cpp
  12. AST.h
  13. CompoundType.cpp
  14. CompoundType.h
  15. ConstantExpression.cpp
  16. ConstantExpression.h
  17. Coordinator.cpp
  18. Coordinator.h
  19. DeathRecipientType.cpp
  20. DeathRecipientType.h
  21. EnumType.cpp
  22. EnumType.h
  23. FmqType.cpp
  24. FmqType.h
  25. generateCpp.cpp
  26. generateCppAdapter.cpp
  27. generateCppImpl.cpp
  28. generateJava.cpp
  29. generateVts.cpp
  30. HandleType.cpp
  31. HandleType.h
  32. Hash.cpp
  33. hidl-gen_l.ll
  34. hidl-gen_y.yy
  35. HidlTypeAssertion.cpp
  36. HidlTypeAssertion.h
  37. Interface.cpp
  38. Interface.h
  39. Location.cpp
  40. Location.h
  41. main.cpp
  42. MemoryType.cpp
  43. MemoryType.h
  44. Method.cpp
  45. Method.h
  46. MODULE_LICENSE_APACHE2
  47. NamedType.cpp
  48. NamedType.h
  49. NOTICE
  50. OWNERS
  51. PointerType.cpp
  52. PointerType.h
  53. PREUPLOAD.cfg
  54. README.md
  55. Reference.h
  56. RefType.cpp
  57. RefType.h
  58. ScalarType.cpp
  59. ScalarType.h
  60. Scope.cpp
  61. Scope.h
  62. StringType.cpp
  63. StringType.h
  64. Type.cpp
  65. Type.h
  66. TypeDef.cpp
  67. TypeDef.h
  68. update-all-google-makefiles.sh
  69. update-makefiles-helper.sh
  70. VectorType.cpp
  71. VectorType.h
README.md

hidl-gen user guide

1. Build

croot
make hidl-gen

2. Run

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