diff options
| -rw-r--r-- | tools/veridex/Android.bp | 1 | ||||
| -rw-r--r-- | tools/veridex/hidden_api_finder.cc | 2 | ||||
| -rw-r--r-- | tools/veridex/precise_hidden_api_finder.cc | 4 | ||||
| -rw-r--r-- | tools/veridex/veridex.h | 1 |
4 files changed, 4 insertions, 4 deletions
diff --git a/tools/veridex/Android.bp b/tools/veridex/Android.bp index 96d4a094b5..92ace035cf 100644 --- a/tools/veridex/Android.bp +++ b/tools/veridex/Android.bp @@ -14,6 +14,7 @@ cc_binary { name: "veridex", + defaults: ["art_defaults"], host_supported: true, srcs: [ "flow_analysis.cc", diff --git a/tools/veridex/hidden_api_finder.cc b/tools/veridex/hidden_api_finder.cc index cb45c58426..a8c53b31f5 100644 --- a/tools/veridex/hidden_api_finder.cc +++ b/tools/veridex/hidden_api_finder.cc @@ -232,7 +232,7 @@ void HiddenApiFinder::DumpReferences(std::ostream& os, counts[ref_string]++; } - for (const std::pair<const std::string, const size_t>& pair : counts) { + for (const std::pair<const std::string, size_t>& pair : counts) { os << kPrefix << pair.first; if (pair.second > 1) { os << " (" << pair.second << " occurrences)"; diff --git a/tools/veridex/precise_hidden_api_finder.cc b/tools/veridex/precise_hidden_api_finder.cc index 08ac6d7939..9e02cbf696 100644 --- a/tools/veridex/precise_hidden_api_finder.cc +++ b/tools/veridex/precise_hidden_api_finder.cc @@ -85,7 +85,7 @@ void PreciseHiddenApiFinder::Run(const std::vector<std::unique_ptr<VeridexResolv void PreciseHiddenApiFinder::Dump(std::ostream& os, HiddenApiStats* stats) { static const char* kPrefix = " "; std::map<std::string, std::vector<MethodReference>> named_uses; - for (auto it : concrete_uses_) { + for (auto& it : concrete_uses_) { MethodReference ref = it.first; for (const ReflectAccessInfo& info : it.second) { std::string cls(info.cls.ToString()); @@ -98,7 +98,7 @@ void PreciseHiddenApiFinder::Dump(std::ostream& os, HiddenApiStats* stats) { } } - for (auto it : named_uses) { + for (auto& it : named_uses) { ++stats->reflection_count; const std::string& full_name = it.first; HiddenApiAccessFlags::ApiList api_list = hidden_api_.GetApiList(full_name); diff --git a/tools/veridex/veridex.h b/tools/veridex/veridex.h index 31ddbf439e..e0d82616ae 100644 --- a/tools/veridex/veridex.h +++ b/tools/veridex/veridex.h @@ -44,7 +44,6 @@ using VeriMethod = const uint8_t*; */ class VeriClass { public: - VeriClass(const VeriClass& other) = default; VeriClass() = default; VeriClass(Primitive::Type k, uint8_t dims, const DexFile::ClassDef* cl) : kind_(k), dimensions_(dims), class_def_(cl) {} |