Merge "Remove trailing spaces from JSON dump"

am: 83e7410d9b

Change-Id: I9f52f84f217df7295162ba408843f2351eb60c9a
This commit is contained in:
Hsin-Yi Chen
2018-09-18 22:16:47 -07:00
committed by android-build-merger
7 changed files with 286 additions and 669 deletions

View File

@@ -19,6 +19,7 @@
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
#include <sstream>
#include <string> #include <string>
namespace abi_util { namespace abi_util {
@@ -394,10 +395,40 @@ bool JsonIRDumper::AddElfSymbolMessageIR(const ElfSymbolIR *elf_symbol_ir) {
return true; return true;
} }
bool JsonIRDumper::Dump() { static std::string DumpJson(const JsonObject &obj) {
std::ofstream output(dump_path_); std::ostringstream output_stream;
Json::StyledStreamWriter writer(/* indentation */ " "); Json::StyledStreamWriter writer(/* indentation */ " ");
writer.write(output, translation_unit_); writer.write(output_stream, obj);
return output_stream.str();
}
static void WriteTailTrimmedLinesToFile(const std::string &path,
const std::string &output_string) {
std::ofstream output_file(path);
size_t line_start = 0;
while (line_start < output_string.size()) {
size_t trailing_space_start = line_start;
size_t index;
for (index = line_start;
index < output_string.size() && output_string[index] != '\n';
index++) {
if (output_string[index] != ' ') {
trailing_space_start = index + 1;
}
}
// Only write this line if this line contains non-whitespace characters.
if (trailing_space_start != line_start) {
output_file.write(output_string.data() + line_start,
trailing_space_start - line_start);
output_file.write("\n", 1);
}
line_start = index + 1;
}
}
bool JsonIRDumper::Dump() {
std::string output_string = DumpJson(translation_unit_);
WriteTailTrimmedLinesToFile(dump_path_, output_string);
return true; return true;
} }

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 64, "field_offset" : 64,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 96, "field_offset" : 96,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 24, "size" : 24,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 64, "field_offset" : 64,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 96, "field_offset" : 96,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 24, "size" : 24,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 8, "size" : 8,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 64, "field_offset" : 64,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,

View File

@@ -1,13 +1,11 @@
{ {
"array_types" : [], "array_types" : [],
"builtin_types" : "builtin_types" :
[ [
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "float", "linker_set_key" : "float",
@@ -18,11 +16,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "int", "linker_set_key" : "int",
@@ -33,11 +30,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : true, "is_integral" : true,
"is_unsigned" : true, "is_unsigned" : true,
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "unsigned int", "linker_set_key" : "unsigned int",
@@ -48,11 +44,10 @@
"source_file" : "" "source_file" : ""
} }
}, },
{ {
"is_integral" : false, "is_integral" : false,
"is_unsigned" : false, "is_unsigned" : false,
"type_info" : "type_info" :
{ {
"alignment" : 0, "alignment" : 0,
"linker_set_key" : "void", "linker_set_key" : "void",
@@ -64,105 +59,88 @@
} }
} }
], ],
"elf_functions" : "elf_functions" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_Z26test_virtual_function_callP12SuperSpeaker" "name" : "_Z26test_virtual_function_callP12SuperSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12NotReferenced" "name" : "_ZN12NotReferenced"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker11SpeakLouderEv" "name" : "_ZN12SuperSpeaker11SpeakLouderEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi" "name" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN12SuperSpeaker9SpeakLoudEv" "name" : "_ZN12SuperSpeaker9SpeakLoudEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker5SpeakEv" "name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN16LowVolumeSpeaker6ListenEv" "name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker11BadPracticeEf" "name" : "_ZN17HighVolumeSpeaker11BadPracticeEf"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker5SpeakEv" "name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZN17HighVolumeSpeaker6ListenEv" "name" : "_ZN17HighVolumeSpeaker6ListenEv"
} }
], ],
"elf_objects" : "elf_objects" :
[ [
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV16LowVolumeSpeaker" "name" : "_ZTV16LowVolumeSpeaker"
}, },
{ {
"binding" : "global", "binding" : "global",
"name" : "_ZTV17HighVolumeSpeaker" "name" : "_ZTV17HighVolumeSpeaker"
} }
], ],
"enum_types" : "enum_types" :
[ [
{ {
"access" : "private", "access" : "private",
"enum_fields" : "enum_fields" :
[ [
{ {
"enum_field_value" : 1, "enum_field_value" : 1,
"name" : "SuperSpeaker::Volume::Loud" "name" : "SuperSpeaker::Volume::Loud"
}, },
{ {
"enum_field_value" : 2, "enum_field_value" : 2,
"name" : "SuperSpeaker::Volume::Louder" "name" : "SuperSpeaker::Volume::Louder"
}, },
{ {
"enum_field_value" : 3, "enum_field_value" : 3,
"name" : "SuperSpeaker::Volume::Loudest" "name" : "SuperSpeaker::Volume::Loudest"
}, },
{ {
"enum_field_value" : 4, "enum_field_value" : 4,
"name" : "SuperSpeaker::Volume::Lower" "name" : "SuperSpeaker::Volume::Lower"
} }
], ],
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTSN12SuperSpeaker6VolumeE" "unique_id" : "_ZTSN12SuperSpeaker6VolumeE"
}, },
"type_info" : "type_info" :
{ {
"alignment" : 4, "alignment" : 4,
"linker_set_key" : "SuperSpeaker::Volume", "linker_set_key" : "SuperSpeaker::Volume",
@@ -176,16 +154,14 @@
} }
], ],
"function_types" : [], "function_types" : [],
"functions" : "functions" :
[ [
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLouder", "function_name" : "SuperSpeaker::SpeakLouder",
"linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv", "linker_set_key" : "_ZN12SuperSpeaker11SpeakLouderEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -196,14 +172,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::CreateSuperSpeaker", "function_name" : "SuperSpeaker::CreateSuperSpeaker",
"linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi", "linker_set_key" : "_ZN12SuperSpeaker18CreateSuperSpeakerEi",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -214,14 +188,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "SuperSpeaker::SpeakLoud", "function_name" : "SuperSpeaker::SpeakLoud",
"linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv", "linker_set_key" : "_ZN12SuperSpeaker9SpeakLoudEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -232,14 +204,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Speak", "function_name" : "LowVolumeSpeaker::Speak",
"linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN16LowVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -250,14 +220,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "LowVolumeSpeaker::Listen", "function_name" : "LowVolumeSpeaker::Listen",
"linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN16LowVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -268,20 +236,17 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::BadPractice", "function_name" : "HighVolumeSpeaker::BadPractice",
"linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf", "linker_set_key" : "_ZN17HighVolumeSpeaker11BadPracticeEf",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
"referenced_type" : "type-12" "referenced_type" : "type-12"
}, },
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : false, "is_this_ptr" : false,
@@ -292,14 +257,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Speak", "function_name" : "HighVolumeSpeaker::Speak",
"linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv", "linker_set_key" : "_ZN17HighVolumeSpeaker5SpeakEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -310,14 +273,12 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h", "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h",
"template_info" : [] "template_info" : []
}, },
{ {
"access" : "public", "access" : "public",
"function_name" : "HighVolumeSpeaker::Listen", "function_name" : "HighVolumeSpeaker::Listen",
"linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv", "linker_set_key" : "_ZN17HighVolumeSpeaker6ListenEv",
"parameters" : "parameters" :
[ [
{ {
"default_arg" : false, "default_arg" : false,
"is_this_ptr" : true, "is_this_ptr" : true,
@@ -331,11 +292,10 @@
], ],
"global_vars" : [], "global_vars" : [],
"lvalue_reference_types" : [], "lvalue_reference_types" : [],
"pointer_types" : "pointer_types" :
[ [
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker *", "linker_set_key" : "SuperSpeaker *",
@@ -346,9 +306,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker *", "linker_set_key" : "HighVolumeSpeaker *",
@@ -359,9 +318,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "float *", "linker_set_key" : "float *",
@@ -372,9 +330,8 @@
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
} }
}, },
{ {
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker *", "linker_set_key" : "LowVolumeSpeaker *",
@@ -387,15 +344,13 @@
} }
], ],
"qualified_types" : [], "qualified_types" : [],
"record_types" : "record_types" :
[ [
{ {
"access" : "public", "access" : "public",
"base_specifiers" : [], "base_specifiers" : [],
"fields" : "fields" :
[ [
{ {
"access" : "private", "access" : "private",
"field_name" : "mSpeakderId", "field_name" : "mSpeakderId",
@@ -405,12 +360,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS12SuperSpeaker" "unique_id" : "_ZTS12SuperSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "SuperSpeaker", "linker_set_key" : "SuperSpeaker",
@@ -420,46 +375,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/abstract_class.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI12SuperSpeaker" "mangled_component_name" : "_ZTI12SuperSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv" "mangled_component_name" : "_ZN12SuperSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : true, "is_pure" : true,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN12SuperSpeaker6ListenEv" "mangled_component_name" : "_ZN12SuperSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN12SuperSpeakerD1Ev" "mangled_component_name" : "_ZN12SuperSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -469,12 +418,10 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
@@ -484,12 +431,12 @@
"fields" : [], "fields" : [],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS17HighVolumeSpeaker" "unique_id" : "_ZTS17HighVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "HighVolumeSpeaker", "linker_set_key" : "HighVolumeSpeaker",
@@ -499,46 +446,40 @@
"size" : 16, "size" : 16,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/high_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI17HighVolumeSpeaker" "mangled_component_name" : "_ZTI17HighVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN17HighVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN17HighVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
@@ -548,28 +489,24 @@
] ]
} }
}, },
{ {
"access" : "public", "access" : "public",
"base_specifiers" : "base_specifiers" :
[ [
{ {
"access" : "public", "access" : "public",
"is_virtual" : false, "is_virtual" : false,
"referenced_type" : "type-1" "referenced_type" : "type-1"
} }
], ],
"fields" : "fields" :
[ [
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_uint_t", "field_name" : "speaker_uint_t",
"field_offset" : 96, "field_offset" : 96,
"referenced_type" : "type-6" "referenced_type" : "type-6"
}, },
{ {
"access" : "public", "access" : "public",
"field_name" : "speaker_float_star", "field_name" : "speaker_float_star",
@@ -579,12 +516,12 @@
], ],
"is_anonymous" : false, "is_anonymous" : false,
"record_kind" : "class", "record_kind" : "class",
"tag_info" : "tag_info" :
{ {
"unique_id" : "_ZTS16LowVolumeSpeaker" "unique_id" : "_ZTS16LowVolumeSpeaker"
}, },
"template_info" : [], "template_info" : [],
"type_info" : "type_info" :
{ {
"alignment" : 8, "alignment" : 8,
"linker_set_key" : "LowVolumeSpeaker", "linker_set_key" : "LowVolumeSpeaker",
@@ -594,46 +531,40 @@
"size" : 24, "size" : 24,
"source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h" "source_file" : "/development/vndk/tools/header-checker/tests/integration/cpp/gold/include/low_volume_speaker.h"
}, },
"vtable_layout" : "vtable_layout" :
{ {
"vtable_components" : "vtable_components" :
[ [
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "offset_to_top", "kind" : "offset_to_top",
"mangled_component_name" : "" "mangled_component_name" : ""
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "rtti", "kind" : "rtti",
"mangled_component_name" : "_ZTI16LowVolumeSpeaker" "mangled_component_name" : "_ZTI16LowVolumeSpeaker"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker5SpeakEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "function_pointer", "kind" : "function_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv" "mangled_component_name" : "_ZN16LowVolumeSpeaker6ListenEv"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,
"kind" : "complete_dtor_pointer", "kind" : "complete_dtor_pointer",
"mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev" "mangled_component_name" : "_ZN16LowVolumeSpeakerD1Ev"
}, },
{ {
"component_value" : 0, "component_value" : 0,
"is_pure" : false, "is_pure" : false,