-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Open
Labels
C++Related to introduction and use of C++ in the NumPy code baseRelated to introduction and use of C++ in the NumPy code base
Description
Adopting a C++ style guide:
The current approach to using C++ is somewhat unclear. While trying to review #22315, I faced several obstacles, and I couldn't determine which style/rules I should follow; C++ is a monster of features compared to the C language. We urgently need to impose a specific code style to avoid chaos.
I suggest adopting the latest Google C++ Style guide, with minor modifications limited to the following:
-
C++ Version: code should target C++14 , or maybe keep it as-is C++17. Would it be possible? However, keep targeting C++11 in 2023 is too rigorous.
-
Spaces vs. Tabs: indent four spaces at a time.
-
Function Declarations and Definitions: similar to our C style, except the return type goes to the same line next to the function name.
namurphy and kwsp
Metadata
Metadata
Assignees
Labels
C++Related to introduction and use of C++ in the NumPy code baseRelated to introduction and use of C++ in the NumPy code base