Extra Clang Tools 3.9 documentation

clang-tidy - google-build-using-namespace

«  google-build-namespaces   ::   Contents   ::   google-default-arguments  »

google-build-using-namespace

Finds using namespace directives.

https://google.github.io/styleguide/cppguide.html#Namespaces

The check implements the following rule of the Google C++ Style Guide:

You may not use a using-directive to make all names from a namespace available.

// Forbidden -- This pollutes the namespace.
using namespace foo;

Corresponding cpplint.py check name: build/namespaces.

«  google-build-namespaces   ::   Contents   ::   google-default-arguments  »