History log of /system/tools/aidl/main_java.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c1f39b4ea30e7313eeb7f3d3fd5ec66ba00f2bb5 24-Nov-2015 Casey Dahlin <sadmac@google.com> Refactor top-level AST nodes v2

The previous version of this patch was tainted by parts of another
change to remove a memory leak, and ended up trying to treat a bare
pointer like a unique_ptr in a few places. This combines both changes in
to one.

Previous patch was b696437d842d59c0cc26411fa3d71cb91897c572:

We now return an AidlDocument from parsing. This type is non-polymorphic
and contains either a vector of parcelables or an interface. This gets
rid of all of our reinterpret_cast calls and the public item_type field.

Change-Id: I77fbb1d8448343bd02484d896289a514d636df25
Test: Unit tests pass
Bug: none
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/main_java.cpp
eedb29f028af472b90fa528c84d0d89100346e5c 24-Nov-2015 Bart Sears <bsears@google.com> Revert "Refactor top-level AST nodes"

This reverts commit b696437d842d59c0cc26411fa3d71cb91897c572.

Change-Id: Id5c716536299cfad4d13c5891d9be8b1fa2aceae
/system/tools/aidl/main_java.cpp
b696437d842d59c0cc26411fa3d71cb91897c572 17-Nov-2015 Casey Dahlin <sadmac@google.com> Refactor top-level AST nodes

We now return an AidlDocument from parsing. This type is non-polymorphic
and contains either a vector of parcelables or an interface. This gets
rid of all of our reinterpret_cast calls and the public item_type field.

Change-Id: Ia15ace677f79a153f8ebfad84ed43b08f4a3685f
Test: unit and integration tests pass
Bug: 25479378
Signed-off-by: Casey Dahlin <sadmac@google.com>
/system/tools/aidl/main_java.cpp
4a2884b0e9414ed9dfee4e141e8bd462c07b442b 07-Oct-2015 Christopher Wiley <wiley@google.com> Read all files through IoDelegate

This allows us to easily fake out file IO in tests.

Bug: 24703046
Change-Id: I33a59c8e43489b03f27f99fb2949e58cc0311eb1
Test: unittests still pass, clean build of android passes
/system/tools/aidl/main_java.cpp
a590de8d148bb42aa5f1f32aec6faae18a28e720 16-Sep-2015 Christopher Wiley <wiley@google.com> Define aidl-cpp executable

This executable has a distinct usage which reflects that it generates
a very different sort of code.

Bug: 23599341
Test: unittests pass, added new Options unit test

Change-Id: I6750e7146949659a3af0246ad1bca0fa23afb2d5
/system/tools/aidl/main_java.cpp
89eaab56f3ff913c247397b858fac3c8d3d4a206 15-Sep-2015 Christopher Wiley <wiley@google.com> Rename Options to JavaOptions

The aidl command line interface exposes a lot of knobs that
are not used in practice and complicate the internal logic to support.
For C++ generation we have an opportunity to reduce the exposed surface.

Begin by renaming Options to a more specific JavaOptions.

Test: unittests pass
Bug: 23599341

Change-Id: I76478ab2fb12612bf7120a1af28c8db1da9ed22f
/system/tools/aidl/main_java.cpp