diff options
author | Muhammad Qureshi <muhammadq@google.com> | 2020-03-12 07:37:13 -0700 |
---|---|---|
committer | Muhammad Qureshi <muhammadq@google.com> | 2020-03-17 20:19:04 -0700 |
commit | b13a3214a141d11ed8acda522a2382f090407000 (patch) | |
tree | ebb988d23e5f7bd918446ee2c75cea072da66f60 /tools/stats_log_api_gen/main.cpp | |
parent | 8f15e287e93c144b944daa559b90d7fa0a95f4e0 (diff) |
Store annotation during collation
- Only collate atoms in the specified module.
- Replace signature_to_modules with signatureInfoMap. This maps each
signature to another map keyed by field number and whose values are vector of
annotations.
Bug: 151102006
Test: stats-log-api-gen-test
Change-Id: I25bbe4883c8f7f86a06d04d27cd425367b6d65a0
Diffstat (limited to 'tools/stats_log_api_gen/main.cpp')
-rw-r--r-- | tools/stats_log_api_gen/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/stats_log_api_gen/main.cpp b/tools/stats_log_api_gen/main.cpp index e9723a114e88..4f791a35be7b 100644 --- a/tools/stats_log_api_gen/main.cpp +++ b/tools/stats_log_api_gen/main.cpp @@ -194,7 +194,7 @@ run(int argc, char const*const* argv) // Collate the parameters Atoms atoms; - int errorCount = collate_atoms(Atom::descriptor(), &atoms); + int errorCount = collate_atoms(Atom::descriptor(), moduleName, &atoms); if (errorCount != 0) { return 1; } @@ -246,7 +246,7 @@ run(int argc, char const*const* argv) return 1; } errorCount = android::stats_log_api_gen::write_stats_log_cpp( - out, atoms, attributionDecl, moduleName, cppNamespace, cppHeaderImport, supportQ); + out, atoms, attributionDecl, cppNamespace, cppHeaderImport, supportQ); fclose(out); } @@ -262,7 +262,7 @@ run(int argc, char const*const* argv) fprintf(stderr, "Must supply --namespace if supplying a specific module\n"); } errorCount = android::stats_log_api_gen::write_stats_log_header( - out, atoms, attributionDecl, moduleName, cppNamespace); + out, atoms, attributionDecl, cppNamespace); fclose(out); } @@ -291,11 +291,11 @@ run(int argc, char const*const* argv) if (compileQ) { errorCount = android::stats_log_api_gen::write_stats_log_java_q_for_module( - out, atoms, attributionDecl, moduleName, javaClass, javaPackage, + out, atoms, attributionDecl, javaClass, javaPackage, supportWorkSource); } else { errorCount = android::stats_log_api_gen::write_stats_log_java( - out, atoms, attributionDecl, moduleName, javaClass, javaPackage, supportQ, + out, atoms, attributionDecl, javaClass, javaPackage, supportQ, supportWorkSource); } |