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/Main.cpp | |
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/Main.cpp')
-rw-r--r-- | tools/aapt2/Main.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/aapt2/Main.cpp b/tools/aapt2/Main.cpp index 8aedd44656be..8dd176d27345 100644 --- a/tools/aapt2/Main.cpp +++ b/tools/aapt2/Main.cpp @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "util/StringPiece.h" - #include <iostream> #include <vector> +#include "util/StringPiece.h" + namespace aapt { // DO NOT UPDATE, this is more of a marketing version. @@ -27,16 +27,16 @@ static const char* sMajorVersion = "2"; // Update minor version whenever a feature or flag is added. static const char* sMinorVersion = "2"; -int printVersion() { +int PrintVersion() { std::cerr << "Android Asset Packaging Tool (aapt) " << sMajorVersion << "." << sMinorVersion << std::endl; return 0; } -extern int compile(const std::vector<StringPiece>& args); -extern int link(const std::vector<StringPiece>& args); -extern int dump(const std::vector<StringPiece>& args); -extern int diff(const std::vector<StringPiece>& args); +extern int Compile(const std::vector<StringPiece>& args); +extern int Link(const std::vector<StringPiece>& args); +extern int Dump(const std::vector<StringPiece>& args); +extern int Diff(const std::vector<StringPiece>& args); } // namespace aapt @@ -52,15 +52,15 @@ int main(int argc, char** argv) { aapt::StringPiece command(argv[0]); if (command == "compile" || command == "c") { - return aapt::compile(args); + return aapt::Compile(args); } else if (command == "link" || command == "l") { - return aapt::link(args); + return aapt::Link(args); } else if (command == "dump" || command == "d") { - return aapt::dump(args); + return aapt::Dump(args); } else if (command == "diff") { - return aapt::diff(args); + return aapt::Diff(args); } else if (command == "version") { - return aapt::printVersion(); + return aapt::PrintVersion(); } std::cerr << "unknown command '" << command << "'\n"; } else { |