Merge "Fix header-abi-diff skips diff when config.json is not found" am: 3bf758113b am: cf474e4d59
Original change: https://android-review.googlesource.com/c/platform/development/+/2190085 Change-Id: I3dd5d77afd3f55d1a7da8e7b22d82ac92ea28db8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -213,7 +213,10 @@ bool ShouldEmitWarningMessage(CompatibilityStatusIR status) {
|
|||||||
int main(int argc, const char **argv) {
|
int main(int argc, const char **argv) {
|
||||||
llvm::cl::ParseCommandLineOptions(argc, argv, "header-checker");
|
llvm::cl::ParseCommandLineOptions(argc, argv, "header-checker");
|
||||||
|
|
||||||
ReadConfigFile(GetConfigFilePath(old_dump));
|
const std::string config_file_path = GetConfigFilePath(old_dump);
|
||||||
|
if (llvm::sys::fs::exists(config_file_path)) {
|
||||||
|
ReadConfigFile(config_file_path);
|
||||||
|
}
|
||||||
|
|
||||||
std::set<std::string> ignored_symbols;
|
std::set<std::string> ignored_symbols;
|
||||||
if (llvm::sys::fs::exists(ignore_symbol_list)) {
|
if (llvm::sys::fs::exists(ignore_symbol_list)) {
|
||||||
|
|||||||
@@ -72,10 +72,7 @@ bool ConfigFile::Load(std::istream &istream) {
|
|||||||
|
|
||||||
bool ConfigFile::Load(const std::string &path) {
|
bool ConfigFile::Load(const std::string &path) {
|
||||||
std::ifstream stream(path);
|
std::ifstream stream(path);
|
||||||
if (stream.is_open()) {
|
return stream && Load(stream);
|
||||||
return Load(stream);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace utils
|
} // namespace utils
|
||||||
|
|||||||
Reference in New Issue
Block a user