Skip to content

Commit 5af87d0

Browse files
Committing clang-format changes
1 parent 53aa8bf commit 5af87d0

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

packages/seacas/libraries/ioss/src/Ioss_Utils.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,17 @@ namespace Ioss {
3535
enum class ElementShape : unsigned int;
3636
} // namespace Ioss
3737

38-
[[noreturn]] inline void IOSS_ERROR(const std::string &errmsg)
38+
[[noreturn]] inline void IOSS_ERROR(const std::string &errmsg)
3939
{
4040
#if defined(SEACAS_HAVE_MPI)
4141
std::cerr "ERROR: " << errmsg << "\n";
4242
MPI_Abort(MPI_COMM_WORLD);
4343
#else
44-
throw std::runtime_error(errmsg);
44+
throw std::runtime_error(errmsg);
4545
#endif
4646
}
4747

48-
[[noreturn]] inline void IOSS_ERROR(const std::ostringstream &errmsg)
49-
{
50-
IOSS_ERROR(errmsg.str());
51-
}
48+
[[noreturn]] inline void IOSS_ERROR(const std::ostringstream &errmsg) { IOSS_ERROR(errmsg.str()); }
5249

5350
// We have been relying on the assumption that calling `.data()` on an empty vector
5451
// will return `nullptr`. However, according to cppreference (based on the standard):

packages/seacas/libraries/suplib/format_list.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ void formlist(int64_t *ids, int64_t *len)
1616
const char *seq_sep = ", ";
1717

1818
printf("\t\t");
19-
int64_t num = 0;
19+
int64_t num = 0;
2020
while (num < *len) {
2121
if (num == 0) {
2222
printf("%" PRId64 "", ids[num]);
2323
}
2424
else {
2525
printf("%s%" PRId64 "", seq_sep, ids[num]);
2626
}
27-
27+
2828
int64_t begin = ids[num]; // first id in range of 1 or more ids
2929
int64_t previous = ids[num]; // last id in range of 1 or more ids
3030
// Gather a range or single value... (begin .. previous)

0 commit comments

Comments
 (0)