diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2016-10-21 17:56:45 -0700 |
|---|---|---|
| committer | Adam Lesinski <adamlesinski@google.com> | 2016-10-26 19:30:23 -0700 |
| commit | ce5e56e243d262a9b65459c3bd0bb9eaadd40628 (patch) | |
| tree | cf0ecea98883d090d8d2856fc6d32046c7e3d9e8 /tools/aapt2/java/AnnotationProcessor.h | |
| parent | 0f7cc4dc2c49a30c072cbc7aa6c0c5d5c31496d4 (diff) | |
AAPT2: Rename to match new style
Use Google3 naming style to match new
projects' and open source google projects' style.
Preferred to do this in a massive CL so as to avoid
style inconsistencies that plague legacy code bases.
This is a relatively NEW code base, may as well keep
it up to date.
Test: name/style refactor - existing tests pass
Change-Id: Ie80ecb78d46ec53efdfca2336bb57d96cbb7fb87
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor.h')
| -rw-r--r-- | tools/aapt2/java/AnnotationProcessor.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/aapt2/java/AnnotationProcessor.h b/tools/aapt2/java/AnnotationProcessor.h index 54196085db17..666a7f356768 100644 --- a/tools/aapt2/java/AnnotationProcessor.h +++ b/tools/aapt2/java/AnnotationProcessor.h @@ -17,11 +17,11 @@ #ifndef AAPT_JAVA_ANNOTATIONPROCESSOR_H #define AAPT_JAVA_ANNOTATIONPROCESSOR_H -#include "util/StringPiece.h" - #include <sstream> #include <string> +#include "util/StringPiece.h" + namespace aapt { /** @@ -58,15 +58,15 @@ class AnnotationProcessor { * configurations, * we need to collect all the comments. */ - void appendComment(const StringPiece& comment); + void AppendComment(const StringPiece& comment); - void appendNewLine(); + void AppendNewLine(); /** * Writes the comments and annotations to the stream, with the given prefix * before each line. */ - void writeToStream(std::ostream* out, const StringPiece& prefix) const; + void WriteToStream(std::ostream* out, const StringPiece& prefix) const; private: enum : uint32_t { @@ -74,12 +74,12 @@ class AnnotationProcessor { kSystemApi = 0x02, }; - std::stringstream mComment; + std::stringstream comment_; std::stringstream mAnnotations; - bool mHasComments = false; - uint32_t mAnnotationBitMask = 0; + bool has_comments_ = false; + uint32_t annotation_bit_mask_ = 0; - void appendCommentLine(std::string& line); + void AppendCommentLine(std::string& line); }; } // namespace aapt |
