summaryrefslogtreecommitdiff
path: root/.clang-format
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Standardize guards in numpy/core/src/multiarray.Charles Harris2021-09-051-1/+1
|
* STY: Small cleanups of includes in *.c files.Charles Harris2021-09-031-1/+1
| | | | | | | | | | | | | | | | This puts the following numpy defines at the top of the files before the includes. define NPY_NO_DEPRECATED_API NPY_API_VERSION define _MULTIARRAYMODULE define _UMATHMODULE There are also minor cleanups of <...> vs "..." include styles together with a small fix to the .clang-format file to include "pymem.h" among the Python supplied headers. Further cleanups will follow if clang-format is used on the files but that is not done here.
* ENH: Add a clang-format file.Charles Harris2021-09-031-0/+37
Clang-format can be used to reformat C/C++ code for codestyle fixups. The `.clang-format` file here implements the NumPy codestyle document as much as possible. Co-authored-by: Paul Ganssle <paul@ganssle.io>