Don't put semicolons after functions

Putting a semicolon after the closing } of a function causes a compiler
warning (in code that is supposed to be built with -Werror) with current
clang master.

Change-Id: I0bfd1aa83cce01852418c8f9fc88fc45a399f87e
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
1 file changed
tree: c01b0904fa2c39a0e1f998661a944237dbd815e6
  1. AST.cpp
  2. AST.h
  3. Android.bp
  4. Annotation.cpp
  5. Annotation.h
  6. ArrayType.cpp
  7. ArrayType.h
  8. CleanSpec.mk
  9. CompoundType.cpp
  10. CompoundType.h
  11. ConstantExpression.cpp
  12. ConstantExpression.h
  13. Coordinator.cpp
  14. Coordinator.h
  15. DeathRecipientType.cpp
  16. DeathRecipientType.h
  17. DocComment.cpp
  18. DocComment.h
  19. EnumType.cpp
  20. EnumType.h
  21. FmqType.cpp
  22. FmqType.h
  23. FormattingConstants.h
  24. HandleType.cpp
  25. HandleType.h
  26. HidlTypeAssertion.cpp
  27. HidlTypeAssertion.h
  28. Interface.cpp
  29. Interface.h
  30. Location.cpp
  31. Location.h
  32. MODULE_LICENSE_APACHE2
  33. MemoryType.cpp
  34. MemoryType.h
  35. Method.cpp
  36. Method.h
  37. NOTICE
  38. NamedType.cpp
  39. NamedType.h
  40. OWNERS
  41. PREUPLOAD.cfg
  42. PointerType.cpp
  43. PointerType.h
  44. README.md
  45. Reference.h
  46. ScalarType.cpp
  47. ScalarType.h
  48. Scope.cpp
  49. Scope.h
  50. StringType.cpp
  51. StringType.h
  52. TEST_MAPPING
  53. Type.cpp
  54. Type.h
  55. TypeDef.cpp
  56. TypeDef.h
  57. VectorType.cpp
  58. VectorType.h
  59. build/
  60. c2hal/
  61. generateCpp.cpp
  62. generateCppAdapter.cpp
  63. generateCppImpl.cpp
  64. generateDependencies.cpp
  65. generateFormattedHidl.cpp
  66. generateInheritanceHierarchy.cpp
  67. generateJava.cpp
  68. generateJavaImpl.cpp
  69. generateVts.cpp
  70. hashing/
  71. hidl-gen_l.h
  72. hidl-gen_l.ll
  73. hidl-gen_y-helpers.h
  74. hidl-gen_y.yy
  75. hidl2aidl/
  76. host_utils/
  77. lint/
  78. main.cpp
  79. scripts/
  80. test/
  81. update-all-google-makefiles.sh
  82. update-makefiles-helper.sh
  83. utils/
README.md

hidl-gen

Full documentation can be found here: https://source.android.com/devices/architecture/hidl/

hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this compiler uses can be found at system/libhidl.

1. Build

m hidl-gen

2. Run

Note that options for hidl-gen expected to be invoked by the build system are marked with ‘internal’ in the help menu.

hidl-gen -h

hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0

Some defaults for package roots are also provided

hidl-gen -o output -L c++-impl android.hardware.nfc@1.0
hidl-gen -o output -L vts android.hardware.nfc@1.0
hidl-gen -L hash android.hardware.nfc@1.0

Example command for vendor project

hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0

See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples of how to generate HIDL makefiles (using the -Landroidbp option).

c2hal

This is a helper tool to convert C headers to valid .hal files.

m c2hal && c2hal -h