biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb7e74e
)
Add static constexpr members to naming style guide
author
Andrey Alekseenko
<al42and@gmail.com>
Wed, 14 Oct 2020 16:06:25 +0000
(16:06 +0000)
committer
Andrey Alekseenko
<al42and@gmail.com>
Wed, 14 Oct 2020 16:06:25 +0000
(16:06 +0000)
Resolves #3733.
docs/dev-manual/naming.rst
patch
|
blob
|
history
diff --git
a/docs/dev-manual/naming.rst
b/docs/dev-manual/naming.rst
index 37640b5017171cf1911ab5ee01af6db3c8167450..e0fb2d6deca5152730de3abe9d6b0f8b6c1b0ed3 100644
(file)
--- a/
docs/dev-manual/naming.rst
+++ b/
docs/dev-manual/naming.rst
@@
-90,6
+90,7
@@
C++ code
* Accessors for a variable ``foo_`` are named ``foo()`` and ``setFoo()``.
* Global variables are named with a ``g_`` prefix.
* Static class variables are named with a ``s_`` prefix.
+* Static ``constexpr`` class members are named with a ``sc_`` prefix.
* Global constants are often named with a ``c_`` prefix.
* If the main responsibility of a file is to implement a particular class,
then the name of the file should match that class, except for possible