Update clang config (#473)
* Update clang config to put H5E_BEGIN_TRY / H5E_END_TRY on separate lines, empty C++ methods on separate lines, understand that ALL_MEMBERS / UNIQUE_MEMBERS are foreach macros, and properly skip the 'config' directory in the find command without emiting a warning * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -32,15 +32,24 @@
|
||||
* Opens an existing packet table, which can contain either fixed-length or
|
||||
* variable-length packets.
|
||||
*/
|
||||
PacketTable::PacketTable(hid_t fileID, const char *name) { table_id = H5PTopen(fileID, name); }
|
||||
PacketTable::PacketTable(hid_t fileID, const char *name)
|
||||
{
|
||||
table_id = H5PTopen(fileID, name);
|
||||
}
|
||||
|
||||
/* "Open" Constructor - will be deprecated because of char* name */
|
||||
PacketTable::PacketTable(hid_t fileID, char *name) { table_id = H5PTopen(fileID, name); }
|
||||
PacketTable::PacketTable(hid_t fileID, char *name)
|
||||
{
|
||||
table_id = H5PTopen(fileID, name);
|
||||
}
|
||||
|
||||
/* Destructor
|
||||
* Cleans up the packet table
|
||||
*/
|
||||
PacketTable::~PacketTable() { H5PTclose(table_id); }
|
||||
PacketTable::~PacketTable()
|
||||
{
|
||||
H5PTclose(table_id);
|
||||
}
|
||||
|
||||
/* IsValid
|
||||
* Returns true if this packet table is valid, false otherwise.
|
||||
@@ -206,10 +215,14 @@ FL_PacketTable::FL_PacketTable(hid_t fileID, char *name, hid_t dtypeID, hsize_t
|
||||
* Opens an existing fixed-length packet table.
|
||||
* Fails if the packet table specified is variable-length.
|
||||
*/
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, const char *name) : PacketTable(fileID, name) {}
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, const char *name) : PacketTable(fileID, name)
|
||||
{
|
||||
}
|
||||
|
||||
/* "Open" Constructor - will be deprecated because of char* name */
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, char *name) : PacketTable(fileID, name) {}
|
||||
FL_PacketTable::FL_PacketTable(hid_t fileID, char *name) : PacketTable(fileID, name)
|
||||
{
|
||||
}
|
||||
|
||||
/* AppendPacket
|
||||
* Adds a single packet to the packet table. Takes a pointer
|
||||
|
||||
@@ -33,7 +33,10 @@ class H5_HLCPPDLL PacketTable {
|
||||
/* Null constructor
|
||||
* Sets table_id to "invalid"
|
||||
*/
|
||||
PacketTable() { table_id = H5I_BADID; }
|
||||
PacketTable()
|
||||
{
|
||||
table_id = H5I_BADID;
|
||||
}
|
||||
|
||||
/* "Open" Constructor
|
||||
* Opens an existing packet table, which can contain either fixed-length or
|
||||
@@ -163,7 +166,9 @@ class H5_HLCPPDLL FL_PacketTable : virtual public PacketTable {
|
||||
/* Destructor
|
||||
* Cleans up the packet table
|
||||
*/
|
||||
virtual ~FL_PacketTable() {}
|
||||
virtual ~FL_PacketTable()
|
||||
{
|
||||
}
|
||||
|
||||
/* AppendPacket
|
||||
* Adds a single packet to the packet table. Takes a pointer
|
||||
|
||||
Reference in New Issue
Block a user