]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Changing 'int const' to 'const int' 16825/head
authoramitkuma <amitkuma@redhat.com>
Fri, 4 Aug 2017 21:58:21 +0000 (03:28 +0530)
committeramitkuma <amitkuma@redhat.com>
Fri, 4 Aug 2017 21:58:21 +0000 (03:28 +0530)
commitb35719dc2581edd75411670bc727148d37c3bf54
treee0ec4140adde4ac74434c2917a7f4413561478a3
parent9c7a653fee23163225dc65787b6fccec6ffdf662
Changing 'int const' to 'const int'

As per coding Guidelines 'const int' is recommended over 'int const'
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md

NL.26: Use conventional const notation
Example:
const int x = 7;    // OK
int const y = 9;    // bad

Note
We are well aware that you could claim the "bad" examples more logical than the ones marked "OK", but they also confuse more people, especially novices relying on teaching material using the far more common, conventional OK style.
As ever, remember that the aim of these naming and layout rules is consistency and that aesthetics vary immensely.

Enforcement
Flag const used as a suffix for a type.

Signed-off-by: Amit Kumar amitkuma@redhat.com
src/cls/lua/cls_lua.cc
src/crush/CrushWrapper.h
src/mds/MDLog.cc
src/mds/SessionMap.cc
src/mds/SessionMap.h
src/mon/MDSMonitor.cc
src/osd/OSDMap.cc
src/osdc/Objecter.cc
src/tools/cephfs/Dumper.cc
src/tools/cephfs/JournalScanner.h