Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Sep 29, 2023
1 parent e597ca7 commit d3af2c2
Show file tree
Hide file tree
Showing 11 changed files with 310 additions and 310 deletions.
12 changes: 6 additions & 6 deletions include/wrench/services/storage/compound/CompoundStorageService.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ namespace wrench {
double ts;
/** @brief IO action */
IOAction act;
int parts_count; // number of file parts in location array
int parts_count;// number of file parts in location array
std::string file_name;
std::vector<DiskUsage> disk_usage; // new usage stats for updated disks
std::vector<DiskUsage> disk_usage;// new usage stats for updated disks
std::vector<std::shared_ptr<FileLocation>> internal_locations;
};

Expand Down Expand Up @@ -247,8 +247,8 @@ namespace wrench {

/** @brief Default property values **/
WRENCH_PROPERTY_COLLECTION_TYPE default_property_values = {
{CompoundStorageServiceProperty::MAX_ALLOCATION_CHUNK_SIZE, "64000000"},
{CompoundStorageServiceProperty::INTERNAL_STRIPING, "true"},
{CompoundStorageServiceProperty::MAX_ALLOCATION_CHUNK_SIZE, "64000000"},
{CompoundStorageServiceProperty::INTERNAL_STRIPING, "true"},
};

/** @brief Default message payload values
Expand Down Expand Up @@ -322,6 +322,6 @@ namespace wrench {
void traceInternalStorageUse(IOAction action, const std::vector<std::shared_ptr<FileLocation>> &locations = {});
};

}; // namespace wrench
};// namespace wrench

#endif // WRENCH_COMPOUNDSTORAGESERVICE_H
#endif// WRENCH_COMPOUNDSTORAGESERVICE_H
4 changes: 2 additions & 2 deletions include/wrench/services/storage/compound/CompoundStorageServiceMessage.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ namespace wrench {
/***********************/
/** \endcond INTERNAL */
/***********************/
} // namespace wrench
}// namespace wrench

#endif // WRENCH_COMPOUNDSTORAGESERVICEMESSAGE_H
#endif// WRENCH_COMPOUNDSTORAGESERVICEMESSAGE_H
4 changes: 2 additions & 2 deletions include/wrench/services/storage/compound/CompoundStorageServiceMessagePayload.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ namespace wrench {
DECLARE_MESSAGEPAYLOAD_NAME(STORAGE_SELECTION_PAYLOAD);
};

}; // namespace wrench
};// namespace wrench

#endif // WRENCH_COMPOUNDSTORAGESERVICEMESSAGEPAYLOAD_H
#endif// WRENCH_COMPOUNDSTORAGESERVICEMESSAGEPAYLOAD_H
4 changes: 2 additions & 2 deletions include/wrench/services/storage/compound/CompoundStorageServiceProperty.h
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ namespace wrench {
DECLARE_PROPERTY_NAME(INTERNAL_STRIPING);
};

}; // namespace wrench
};// namespace wrench

#endif // WRENCH_COMPOUNDSTORAGESERVICEPROPERTY_H
#endif// WRENCH_COMPOUNDSTORAGESERVICEPROPERTY_H
16 changes: 8 additions & 8 deletions src/wrench/services/storage/StorageServiceMessage.cpp
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace wrench {
StorageServiceFreeSpaceRequestMessage::StorageServiceFreeSpaceRequestMessage(simgrid::s4u::Mailbox *answer_mailbox,
const std::string &path,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if (answer_mailbox == nullptr) {
throw std::invalid_argument(
Expand All @@ -63,7 +63,7 @@ namespace wrench {
*/
StorageServiceFreeSpaceAnswerMessage::StorageServiceFreeSpaceAnswerMessage(
double free_space, double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
this->free_space = free_space;
}

Expand All @@ -78,7 +78,7 @@ namespace wrench {
StorageServiceFileLookupRequestMessage::StorageServiceFileLookupRequestMessage(simgrid::s4u::Mailbox *answer_mailbox,
const std::shared_ptr<FileLocation> &location,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if ((answer_mailbox == nullptr) || (location == nullptr)) {
throw std::invalid_argument(
Expand All @@ -100,7 +100,7 @@ namespace wrench {
StorageServiceFileLookupAnswerMessage::StorageServiceFileLookupAnswerMessage(std::shared_ptr<DataFile> file,
bool file_is_available,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if (file == nullptr) {
throw std::invalid_argument(
Expand All @@ -122,7 +122,7 @@ namespace wrench {
StorageServiceFileDeleteRequestMessage::StorageServiceFileDeleteRequestMessage(simgrid::s4u::Mailbox *answer_mailbox,
const std::shared_ptr<FileLocation> &location,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if ((answer_mailbox == nullptr) || (location == nullptr)) {
throw std::invalid_argument(
Expand All @@ -148,7 +148,7 @@ namespace wrench {
bool success,
std::shared_ptr<FailureCause> failure_cause,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if ((file == nullptr) || (storage_service == nullptr) ||
(success && (failure_cause != nullptr)) ||
Expand Down Expand Up @@ -202,7 +202,7 @@ namespace wrench {
bool success,
std::shared_ptr<FailureCause> failure_cause,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if ((src == nullptr) || (dst == nullptr) ||
(success && (failure_cause != nullptr)) ||
Expand Down Expand Up @@ -232,7 +232,7 @@ namespace wrench {
const std::shared_ptr<FileLocation> &location,
double num_bytes_to_write,
double payload)
: StorageServiceMessage(payload) {
: StorageServiceMessage(payload) {
#ifdef WRENCH_INTERNAL_EXCEPTIONS
if ((!answer_mailbox) or (!requesting_host) or (!location)) {
throw std::invalid_argument(
Expand Down
Loading

0 comments on commit d3af2c2

Please sign in to comment.