commit | 605c421e53027ad3047a62916f9d2c0373de0a35 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Sep 06 10:19:53 2016 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue Sep 06 10:22:52 2016 -0700 |
tree | e983b3bbb8aba5e089b222f3c81fba265754d85e | |
parent | 5c78afc26d29e2f54dceab752d73339eb98ca7d0 [diff] |
Line numbers now properly counted when there are comments. Before, yyloc->lines() not called on newlines in comments. This resulted in syntax errors to be reported at the wrong lines if files contained comments. Change-Id: I196142f30e2f6a98d480c4c866ba974066184c65
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: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0