Add warning comments on format
There is a test depending on veridex output format, so add comments on
format
Test: N/A
Bug: 123662832
Change-Id: Iaa1e598ad075a735086adc084eba952b878a6281
diff --git a/tools/veridex/hidden_api_finder.cc b/tools/veridex/hidden_api_finder.cc
index c6c1c07..e740cf4 100644
--- a/tools/veridex/hidden_api_finder.cc
+++ b/tools/veridex/hidden_api_finder.cc
@@ -197,6 +197,8 @@
stats->linking_count++;
hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first);
stats->api_counts[api_list.GetIntValue()]++;
+ // Note: There is a test depending on this output format,
+ // so please be careful when you modify the format. b/123662832
os << "#" << ++stats->count << ": Linking " << api_list << " " << pair.first << " use(s):";
os << std::endl;
HiddenApiFinder::DumpReferences(os, pair.second);
@@ -214,6 +216,8 @@
hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name);
stats->api_counts[api_list.GetIntValue()]++;
stats->reflection_count++;
+ // Note: There is a test depending on this output format,
+ // so please be careful when you modify the format. b/123662832
os << "#" << ++stats->count << ": Reflection " << api_list << " " << full_name
<< " potential use(s):";
os << std::endl;