Merge changes Id2c62a6a,I20b288ea
* changes: Fix function pointer test for header-checker. header-checker: Cleanup Android.bp
This commit is contained in:
@@ -25,7 +25,7 @@ cc_defaults {
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
"-Werror",
|
"-Werror",
|
||||||
"-DGOOGLE_PROTOBUF_NO_RTTI",
|
"-DGOOGLE_PROTOBUF_NO_RTTI",
|
||||||
"-UNDEBUG"
|
"-UNDEBUG",
|
||||||
],
|
],
|
||||||
|
|
||||||
cppflags: [
|
cppflags: [
|
||||||
@@ -34,78 +34,13 @@ cc_defaults {
|
|||||||
|
|
||||||
target: {
|
target: {
|
||||||
windows: {
|
windows: {
|
||||||
enabled: false
|
enabled: false,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_defaults {
|
cc_library_host_static {
|
||||||
name: "header-checker-lib-defaults",
|
|
||||||
|
|
||||||
static_libs: [
|
|
||||||
"libclangToolingCore",
|
|
||||||
"libclangTooling",
|
|
||||||
"libclangFrontendTool",
|
|
||||||
"libclangFrontend",
|
|
||||||
"libclangDriver",
|
|
||||||
"libclangIndex",
|
|
||||||
"libclangSerialization",
|
|
||||||
"libclangCodeGen",
|
|
||||||
"libclangRewriteFrontend",
|
|
||||||
"libclangRewrite",
|
|
||||||
"libclangParse",
|
|
||||||
"libclangSema",
|
|
||||||
"libclangStaticAnalyzerFrontend",
|
|
||||||
"libclangStaticAnalyzerCheckers",
|
|
||||||
"libclangStaticAnalyzerMPIChecker",
|
|
||||||
"libclangStaticAnalyzerCore",
|
|
||||||
"libclangAnalysis",
|
|
||||||
"libclangEdit",
|
|
||||||
"libclangAST",
|
|
||||||
"libclangLex",
|
|
||||||
"libclangBasic",
|
|
||||||
"libLLVMIRReader",
|
|
||||||
"libLLVMAsmParser",
|
|
||||||
"libLLVMAsmPrinter",
|
|
||||||
"libLLVMBitReader",
|
|
||||||
"libLLVMBitWriter",
|
|
||||||
"libLLVMMC",
|
|
||||||
"libLLVMMCParser",
|
|
||||||
"libLLVMCore",
|
|
||||||
"libLLVMOption",
|
|
||||||
"libLLVMProfileData",
|
|
||||||
"libLLVMObject",
|
|
||||||
"libLLVMMCDisassembler",
|
|
||||||
"libLLVMSupport",
|
|
||||||
],
|
|
||||||
|
|
||||||
shared_libs: [
|
|
||||||
"libprotobuf-cpp-full",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_defaults {
|
|
||||||
name: "header-abi-linker-lib-defaults",
|
|
||||||
|
|
||||||
static_libs: [
|
|
||||||
"libheader-abi-util",
|
|
||||||
"libLLVMObject",
|
|
||||||
"libLLVMBitReader",
|
|
||||||
"libLLVMMC",
|
|
||||||
"libLLVMMCParser",
|
|
||||||
"libLLVMCore",
|
|
||||||
"libLLVMSupport",
|
|
||||||
],
|
|
||||||
|
|
||||||
shared_libs: [
|
|
||||||
"libprotobuf-cpp-full",
|
|
||||||
],
|
|
||||||
}
|
|
||||||
|
|
||||||
cc_library_static {
|
|
||||||
name: "libheader-checker-proto",
|
name: "libheader-checker-proto",
|
||||||
host_supported: true,
|
|
||||||
export_include_dirs: ["."],
|
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"proto/abi_dump.proto",
|
"proto/abi_dump.proto",
|
||||||
@@ -124,6 +59,14 @@ cc_library_static {
|
|||||||
"-Wno-long-long",
|
"-Wno-long-long",
|
||||||
"-Wno-unused-parameter",
|
"-Wno-unused-parameter",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
export_include_dirs: ["."],
|
||||||
|
|
||||||
|
target: {
|
||||||
|
windows: {
|
||||||
|
enabled: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_binary_host {
|
cc_binary_host {
|
||||||
@@ -131,16 +74,69 @@ cc_binary_host {
|
|||||||
|
|
||||||
defaults: [
|
defaults: [
|
||||||
"header-checker-defaults",
|
"header-checker-defaults",
|
||||||
"header-checker-lib-defaults",
|
|
||||||
],
|
],
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"header-abi-dumper/src/*.cpp",
|
"header-abi-dumper/src/abi_wrappers.cpp",
|
||||||
|
"header-abi-dumper/src/ast_processing.cpp",
|
||||||
|
"header-abi-dumper/src/fixed_argv.cpp",
|
||||||
|
"header-abi-dumper/src/frontend_action.cpp",
|
||||||
|
"header-abi-dumper/src/frontend_action_factory.cpp",
|
||||||
|
"header-abi-dumper/src/header_checker.cpp",
|
||||||
|
"header-abi-dumper/src/workaround_fortify.cpp",
|
||||||
|
"header-abi-dumper/src/workaround_openmp.cpp",
|
||||||
],
|
],
|
||||||
|
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libheader-abi-util",
|
"libheader-abi-util",
|
||||||
"libheader-checker-proto",
|
"libheader-checker-proto",
|
||||||
|
"libclangToolingCore",
|
||||||
|
"libclangTooling",
|
||||||
|
"libclangFrontendTool",
|
||||||
|
"libclangFrontend",
|
||||||
|
"libclangDriver",
|
||||||
|
"libclangIndex",
|
||||||
|
"libclangSerialization",
|
||||||
|
"libclangCodeGen",
|
||||||
|
"libclangParse",
|
||||||
|
"libclangSema",
|
||||||
|
"libclangAnalysis",
|
||||||
|
"libclangEdit",
|
||||||
|
"libclangAST",
|
||||||
|
"libclangLex",
|
||||||
|
"libclangBasic",
|
||||||
|
"libLLVMBitReader",
|
||||||
|
"libLLVMBitWriter",
|
||||||
|
"libLLVMMC",
|
||||||
|
"libLLVMMCParser",
|
||||||
|
"libLLVMCore",
|
||||||
|
"libLLVMOption",
|
||||||
|
"libLLVMProfileData",
|
||||||
|
"libLLVMObject",
|
||||||
|
"libLLVMSupport",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"libprotobuf-cpp-full",
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|
||||||
|
cc_defaults {
|
||||||
|
name: "header-abi-linker-defaults",
|
||||||
|
|
||||||
|
static_libs: [
|
||||||
|
"libheader-abi-util",
|
||||||
|
"libheader-checker-proto",
|
||||||
|
"libLLVMObject",
|
||||||
|
"libLLVMBitReader",
|
||||||
|
"libLLVMMC",
|
||||||
|
"libLLVMMCParser",
|
||||||
|
"libLLVMCore",
|
||||||
|
"libLLVMSupport",
|
||||||
|
],
|
||||||
|
|
||||||
|
shared_libs: [
|
||||||
|
"libprotobuf-cpp-full",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,15 +145,11 @@ cc_binary_host {
|
|||||||
|
|
||||||
defaults: [
|
defaults: [
|
||||||
"header-checker-defaults",
|
"header-checker-defaults",
|
||||||
"header-abi-linker-lib-defaults",
|
"header-abi-linker-defaults",
|
||||||
],
|
],
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"header-abi-linker/src/*.cpp",
|
"header-abi-linker/src/header_abi_linker.cpp",
|
||||||
],
|
|
||||||
|
|
||||||
static_libs: [
|
|
||||||
"libheader-checker-proto",
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,15 +158,13 @@ cc_binary_host {
|
|||||||
|
|
||||||
defaults: [
|
defaults: [
|
||||||
"header-checker-defaults",
|
"header-checker-defaults",
|
||||||
"header-abi-linker-lib-defaults",
|
"header-abi-linker-defaults",
|
||||||
],
|
],
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"header-abi-diff/src/*.cpp",
|
"header-abi-diff/src/abi_diff.cpp",
|
||||||
],
|
"header-abi-diff/src/abi_diff_wrappers.cpp",
|
||||||
|
"header-abi-diff/src/header_abi_diff.cpp",
|
||||||
static_libs: [
|
|
||||||
"libheader-checker-proto",
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,36 +173,31 @@ cc_binary_host {
|
|||||||
|
|
||||||
defaults: [
|
defaults: [
|
||||||
"header-checker-defaults",
|
"header-checker-defaults",
|
||||||
"header-abi-linker-lib-defaults",
|
"header-abi-linker-defaults",
|
||||||
],
|
],
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"merge-abi-diff/src/*.cpp",
|
"merge-abi-diff/src/merge_abi_diff.cpp",
|
||||||
],
|
|
||||||
|
|
||||||
static_libs: [
|
|
||||||
"libheader-checker-proto",
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
cc_library_static {
|
cc_library_host_static {
|
||||||
name: "libheader-abi-util",
|
name: "libheader-abi-util",
|
||||||
|
|
||||||
defaults: [
|
defaults: [
|
||||||
"header-checker-defaults",
|
"header-checker-defaults",
|
||||||
],
|
],
|
||||||
host_supported: true,
|
|
||||||
export_include_dirs: ["header-abi-util/include"],
|
|
||||||
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"header-abi-util/src/*.cpp"
|
"header-abi-util/src/abi_diff_helpers.cpp",
|
||||||
|
"header-abi-util/src/collect_exported_headers.cpp",
|
||||||
|
"header-abi-util/src/ir_representation.cpp",
|
||||||
|
"header-abi-util/src/ir_representation_protobuf.cpp",
|
||||||
|
"header-abi-util/src/so_file_parser.cpp",
|
||||||
|
"header-abi-util/src/version_script_parser.cpp",
|
||||||
],
|
],
|
||||||
|
|
||||||
static_libs: [
|
static_libs: [
|
||||||
"libLLVMObject",
|
|
||||||
"libLLVMBitReader",
|
|
||||||
"libLLVMMC",
|
|
||||||
"libLLVMMCParser",
|
|
||||||
"libLLVMCore",
|
|
||||||
"libLLVMSupport",
|
|
||||||
"libheader-checker-proto",
|
"libheader-checker-proto",
|
||||||
],
|
],
|
||||||
|
|
||||||
@@ -220,10 +205,11 @@ cc_library_static {
|
|||||||
"libprotobuf-cpp-full",
|
"libprotobuf-cpp-full",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
cflags: [
|
cflags: [
|
||||||
"-Wcast-qual",
|
"-Wcast-qual",
|
||||||
"-Wno-long-long",
|
"-Wno-long-long",
|
||||||
"-Wno-unused-parameter",
|
"-Wno-unused-parameter",
|
||||||
],
|
],
|
||||||
|
|
||||||
|
export_include_dirs: ["header-abi-util/include"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -252,8 +252,8 @@ class MyTest(unittest.TestCase):
|
|||||||
def test_libgolden_cpp_member_function_pointer_changed(self):
|
def test_libgolden_cpp_member_function_pointer_changed(self):
|
||||||
self.prepare_and_run_abi_diff_all_archs(
|
self.prepare_and_run_abi_diff_all_archs(
|
||||||
"libgolden_cpp_function_pointer",
|
"libgolden_cpp_function_pointer",
|
||||||
"libgolden_cpp_function_pointer_parameter_added", 8, [], False,
|
"libgolden_cpp_function_pointer_parameter_added", 8, [], True,
|
||||||
False)
|
True)
|
||||||
|
|
||||||
def test_libgolden_cpp_internal_struct_access_upgraded(self):
|
def test_libgolden_cpp_internal_struct_access_upgraded(self):
|
||||||
self.prepare_and_run_abi_diff_all_archs(
|
self.prepare_and_run_abi_diff_all_archs(
|
||||||
|
|||||||
Reference in New Issue
Block a user