diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-09-03 14:52:20 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2021-09-03 15:06:51 -0600 |
commit | 7653829fa0d409d5850566cda1c031d9fadc1c22 (patch) | |
tree | db802a0682e5e1876e00ba2b8f908c0081c37f11 /.clang-format | |
parent | 410a89ef04a2d3c50dd2dba2ad403c872c3745ac (diff) | |
download | numpy-7653829fa0d409d5850566cda1c031d9fadc1c22.tar.gz |
STY: Small cleanups of includes in *.c files.
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.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index 99b9aabe1..c78fb5f77 100644 --- a/.clang-format +++ b/.clang-format @@ -16,7 +16,7 @@ DerivePointerAlignment: false IndentWidth: 4 IncludeBlocks: Regroup IncludeCategories: - - Regex: '^[<"](Python|structmember)' + - Regex: '^[<"](Python|structmember|pymem)' Priority: -3 CaseSensitive: true - Regex: '^"numpy/' |