History log of /system/tools/aidl/code_writer.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a62067f35e957493bc37c4b42dfdcfc16353831 04-Dec-2015 Elliott Hughes <enh@google.com> Track base/ -> android-base/ change.

Change-Id: I02b64b42c17d248c5fb2c4de4b0778a441e018e3
/system/tools/aidl/code_writer.h
9d6e0b29add607669e440085f1fc60cd434dc987 13-Nov-2015 Christopher Wiley <wiley@google.com> Remove generated code on IO errors

Bug: 25026025
Test: unit tests

Change-Id: Ice5d823102c742d546386f1ad71ef63a48c90820
/system/tools/aidl/code_writer.h
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/code_writer.h
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/code_writer.h