xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/google/build-using-namespace.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - google-build-using-namespace
2
3google-build-using-namespace
4============================
5
6Finds ``using namespace`` directives.
7
8The check implements the following rule of the
9`Google C++ Style Guide <https://google.github.io/styleguide/cppguide.html#Namespaces>`_:
10
11  You may not use a using-directive to make all names from a namespace
12  available.
13
14.. code-block:: c++
15
16    // Forbidden -- This pollutes the namespace.
17    using namespace foo;
18
19Corresponding cpplint.py check name: `build/namespaces`.
20