File: AllowShortFunctionsOnASingleLine.cpp

package info (click to toggle)
bluebrain-hpc-coding-conventions 1.0.0%2Bgit20221201-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 624 kB
  • sloc: python: 2,021; cpp: 220; makefile: 29
file content (9 lines) | stat: -rw-r--r-- 119 bytes parent folder | download
1
2
3
4
5
6
7
8
9
// Only empty methods can be put in a single line

class Foo {
    void f() {
        foo();
    }

    void f() {}
};