User Tools

Site Tools


dev:codingconventions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
dev:codingconventions [2020/02/11 12:00]
oschuett
dev:codingconventions [2020/05/05 07:51] (current)
oschuett
Line 22: Line 22:
 ===== Don't use poorly designed language features ===== ===== Don't use poorly designed language features =====
   * Do not use the ''​GOTO''​-statement. See also [[http://​xkcd.com/​292/​]] and [[doi>​10.1145/​362929.362947]]   * Do not use the ''​GOTO''​-statement. See also [[http://​xkcd.com/​292/​]] and [[doi>​10.1145/​362929.362947]]
-  * Do not use left-hand-side (lhs) reallocations of allocatables [-Wrealloc-lhs-all]. [[http://www.tddft.org/pipermail/octopus-devel/2012-February/005510.html ​| Why? ]] +  * Do not use left-hand-side (lhs) reallocations of allocatables [-Wrealloc-lhs]. [[https://github.com/cp2k/cp2k/issues/726 | Why? ]] 
   * Do not use ''​FORALL''​ constructs. [[https://​gcc.gnu.org/​ml/​fortran/​2012-04/​msg00025.html | Why? ]]   * Do not use ''​FORALL''​ constructs. [[https://​gcc.gnu.org/​ml/​fortran/​2012-04/​msg00025.html | Why? ]]
   * Do not use ''​OMP THREADPRIVATE''​ variables.   * Do not use ''​OMP THREADPRIVATE''​ variables.
dev/codingconventions.txt ยท Last modified: 2020/05/05 07:51 by oschuett