HDFGroup / HDFGroup/hdf5

Make header files sortable.

Open
#2,789 2 comments 0 reactions 1 assignee Claimed by @derobins View on GitHub
Dominant language
C
Stars
988
Forks
355
Avg merge
4d 2h
Merged PRs (30d)
12

Description

**Is your feature request related to a problem? Please describe.**

H5ES won't compile if `SortIncludes: true` in `.clang-format`.

```
CC H5ES.lo
In file included from H5ESdevelop.h:22,
from H5ESprivate.h:28,
from H5ESpkg.h:29,
from H5ES.c:37:
H5ESpublic.h:94:5: error: unknown type name ‘hid_t’
94 | hid_t err_stack_id; /**< ID for error stack from failed operation */
| ^~~~~
H5ESpublic.h:131:43: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
131 | hid_t err_stack, void *ctx);
| ^~~~~
| id_t
H5ESpublic.h:158:8: error: unknown type name ‘hid_t’; did you mean ‘id_t’?
158 | H5_DLL hid_t H5EScreate(void);
| ^~~~~
| id_t
```

**Describe the solution you'd like**

Make headers sortable by clang formatter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.