Difference: LHCbCodingGuidelines (6 vs. 7)

Revision 72016-07-22 - MarcoCattaneo

Line: 1 to 1
 
META TOPICPARENT name="LHCbComputing"

LHCb Coding Guidelines

Line: 7 to 7
 

C++ Coding Guidelines

Changed:
<
<
  • We suggest to follow, as much as possible, Bjarne Stroustrup's C++ code guidelines. Note that, for the time being, C++14 is not allowed in LHCb production code (since it must compile with gcc48)
>
>
  • We suggest to follow, as much as possible, Bjarne Stroustrup's C++ code guidelines. Note that C++14 is allowed as from the LHCb v41r* software stack. It is not allowed in the LHCb v40r* stack (2016-patches branch in Gitlab) and earlier to preserve compatibility with gcc48.
  • All code must compiled without warnings with all compilers for which we run nightly tests. Currently (July 2016) these are gcc49, gcc61, clang37. See https://lhcb-nightlies.cern.ch/nightly/. Check also for warnings in the Coverity code analyser
 
  • For a historical perspective, the original (from 2001) LHCb C++ coding conventions are described in note LHCb-2001-054. Many of the recommendations are still valid, as well as the naming conventions.
  • An emacs customisation file was developed to produce standard templates for source code files
Line: 49 to 50
 
Changed:
<
<
-- MarcoCattaneo - 09-Dec-2013
>
>
-- MarcoCattaneo - 22-Jul-2016
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback