Skip to content

Files

Latest commit

 

History

History
37 lines (18 loc) · 586 Bytes

runtime-indentation_namespace.md

File metadata and controls

37 lines (18 loc) · 586 Bytes

Pattern: Indent within namespace

Issue: -

Description

The contents of namespaces should not be indented. For example, use:

namespace {

void foo() {  // Correct.  No extra indentation within namespace.
  ...

}

}  // namespace

Do not indent within a namespace:

namespace {

  // Wrong.  Indented when it should not be.
  void foo() {
    ...

  }

}  // namespace

Further Reading