Skip to content

Files

Latest commit

 

History

History
15 lines (8 loc) · 754 Bytes

build-namespaces.md

File metadata and controls

15 lines (8 loc) · 754 Bytes

Pattern: Malformed namespace

Issue: -

Description

With few exceptions, place code in a namespace. Namespaces should have unique names based on the project name, and possibly its path. Do not use using-directives (e.g. using namespace foo). Do not use inline namespaces.

When definitions in a .cc file do not need to be referenced outside that file, place them in an unnamed namespace or declare them static. Do not use either of these constructs in .h files.

Further Reading