diff --git a/hcore/deviceManager/deviceSpecParser.cpp b/hcore/deviceManager/deviceSpecParser.cpp index 6e60c77..e4ad144 100644 --- a/hcore/deviceManager/deviceSpecParser.cpp +++ b/hcore/deviceManager/deviceSpecParser.cpp @@ -16,7 +16,8 @@ namespace device { std::string DeviceManager::readDeviceFile(const std::string& filename) { std::ifstream file(filename); - if (!file.is_open()) { + if (!file.is_open()) + { throw std::runtime_error( std::string(__func__) + ": Couldn't open deviceSpec file: " + filename); @@ -47,18 +48,19 @@ void DeviceManager::collateAllDeviceSpecs(void) void DeviceManager::parseAllDeviceSpecs(void) { std::unique_ptr input( - fmemopen((void*)allDeviceSpecs.c_str(), - allDeviceSpecs.size(), "r"), + fmemopen((void*)allDeviceSpecs.c_str(), allDeviceSpecs.size(), "r"), &fclose); - if (!input) { + if (!input) + { throw std::runtime_error( std::string(__func__) + ": Failed to fmemopen() a FILE* for " "parsing device specs"); } deviceSpeclin = input.get(); - if (deviceSpecpparse()) { + if (deviceSpecpparse()) + { throw std::runtime_error( std::string(__func__) + ": Failed to parse device specs. " "Check specs for errors");