12e894a3b69f045f104a9026765ecbc60ec5967e |
|
29-Jan-2016 |
Christopher Wiley <wiley@google.com> |
Remove last using directives from global header scope Bug: None Test: Compiles, unittests pass Change-Id: I66dee2504b28049ecb74526a08345e999d57db8d
/system/tools/aidl/ast_java_unittest.cpp
|
5679952c38925a54b75b087068887002e57f3174 |
|
31-Oct-2015 |
Christopher Wiley <wiley@google.com> |
Don't call virtual methods in TypeNamespace constructors While probably safe in this particular context because of this specific class structure, it is bad practice to call virtual methods in constructors. Bug: None Test: unittests continue to pass Change-Id: I3c9a435efd89a2c2bd7ce576aed585b8ab766bda
/system/tools/aidl/ast_java_unittest.cpp
|
09af469476ea6d187b52f22113d3b168a887100c |
|
30-Oct-2015 |
Christopher Wiley <wiley@google.com> |
Consolidate type checking logic Move logic used to check types used in AIDL into a common superclass of the language specific type namespaces. Add a templated LanguageTypeNamespace class to allow language specific type reasoning while sharing an implementation. Move functionality important to the the AIDL type checking into ValidatableType and out of the Java and C++ subclasses. Removed GenericType from the Java type system because it messed around with the canonical name for a type post construction, while adding absolutely no value of its own. Bug: 24470786 Test: unittests continue to pass, full build of android succeeds. Change-Id: Ic03eb5d770c7f51abbde87c20a9b7287ce6a277e
/system/tools/aidl/ast_java_unittest.cpp
|
db154a5f543ff697248df649a14f2ac4a70cbf0e |
|
29-Sep-2015 |
Christopher Wiley <wiley@google.com> |
Move Java related code into a java namespace This lets us use names like Type instead of CppType for generated code specific to C++. C++ code will similarly go in its own namespace. Bug: 24472672 Test: Compiles, unittests pass Change-Id: I10fc8ce6436e297eb36c7b63e0c6d78a45bf2a19
/system/tools/aidl/ast_java_unittest.cpp
|
8b2d3ee344b982b0ea387c08e596fd639e22309a |
|
24-Sep-2015 |
Christopher Wiley <wiley@google.com> |
Remove NAMES global type namespace We now pass around an instance of JavaTypeNamespace to resolve types. Add a const pointer to this namespace to java Type objects. This enables a lot of cases where we need to refer to the type namespace as we dynamically resolve types. Prototype a method to remove INT_TYPE global constant by looking up the appropriate type in an instance of JavaTypeNamespace. Bug: 24303749 Test: Compiles, unittests pass Change-Id: I3bb25ffb875e1e55f0548b6cd0e84e3e8bbf817e
/system/tools/aidl/ast_java_unittest.cpp
|
775fa1f7db4626b85e5185149b054821fc605c2b |
|
23-Sep-2015 |
Christopher Wiley <wiley@google.com> |
Rename Type.* to type_java.* We'll soon have type_cpp variations on these files, and a more generic type.h Bug: 24303749 Test: Compiles, unittests Change-Id: I64f45efa3553f1a46d2d16d6652eedd6b324b2e4
/system/tools/aidl/ast_java_unittest.cpp
|
413e0426eebdb41d8e9344bd2a6a0ef79369de25 |
|
18-Sep-2015 |
Christopher Wiley <wiley@google.com> |
Move logic to write to stdout into CodeWriter This will allow us to reuse it when we write C++ code. I think this will mostly come in handy for debugging. While here, rename the helper functions in accordance with the style guide. Test: unittests Bug: 24220933 Change-Id: I269eb4a0dda10588c2ae77b7c8f2b00e50e70047
/system/tools/aidl/ast_java_unittest.cpp
|
fdeb0f4b96b6c39b1b9ed3358634f180f9e6df06 |
|
12-Sep-2015 |
Christopher Wiley <wiley@google.com> |
Abstract away file IO when writing generated code This allows us to write unittests of Java/Cpp AST elements without doing file I/O each time. Introduce a CodeWriter class which may write to either a string or a file dependening on the contect. While here, mark the write methods as const. Test: Compiles, unittests pass, added new unittest demonstrating usage. Bug: 23598995 Change-Id: I240ede41f0f9c04c0d14d1a3680ce5ab332babbc
/system/tools/aidl/ast_java_unittest.cpp
|