diff options
author | Adam Lesinski <adamlesinski@google.com> | 2016-03-10 21:55:04 -0800 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2016-03-11 00:22:52 -0800 |
commit | 7656554f91b40bc93bf94c89afcad4a9a8ced884 (patch) | |
tree | 76a275c869513d419dc85ee2b7f946688043e3d9 /tools/aapt2/java/AnnotationProcessor.cpp | |
parent | 5b37ef489a4090da3643041c8d0e6efa282ad8b6 (diff) |
AAPT2: Add descriptions of Attributes in Styleables for R.java
Change-Id: I69e7b73cbdfe4baf502348397435c501ae29ff5e
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor.cpp')
-rw-r--r-- | tools/aapt2/java/AnnotationProcessor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/aapt2/java/AnnotationProcessor.cpp b/tools/aapt2/java/AnnotationProcessor.cpp index 9c25d4e35975..496e92e0bf93 100644 --- a/tools/aapt2/java/AnnotationProcessor.cpp +++ b/tools/aapt2/java/AnnotationProcessor.cpp @@ -38,7 +38,7 @@ void AnnotationProcessor::appendCommentLine(const std::string& comment) { mComment << "/**"; } - mComment << "\n" << " * " << std::move(comment); + mComment << "\n * " << std::move(comment); } void AnnotationProcessor::appendComment(const StringPiece16& comment) { @@ -60,6 +60,10 @@ void AnnotationProcessor::appendComment(const StringPiece& comment) { } } +void AnnotationProcessor::appendNewLine() { + mComment << "\n *"; +} + void AnnotationProcessor::writeToStream(std::ostream* out, const StringPiece& prefix) { if (mHasComments) { std::string result = mComment.str(); |